Appears to be working fine for me, fresh project using sendgrid:
After confirming via the email, the token is removed and confirmed boolean is set to true:
Appears to be working fine for me, fresh project using sendgrid:
After confirming via the email, the token is removed and confirmed boolean is set to true:
I’m guessing the issue is with some code that’s messing with your response (since you can see the confirmation is working in the database)
Side point though that initial
confirmed
value should be false, not null. Unrelated but should probably put in a bug report for that.
@DMehaffy Thank you very much for the first time and I will keep going until I find it
. As soon as I find out what the problem is, I’ll report it to you.
Please do.
@DMehaffy I looked at it again. At first I got the status 302, but the “response” is “Undefined” (“message”: ‘Network Error’)? If I execute the confirmation again, I get the status 400.
What status code do you get, 302?
P.S.: When I open “config”, I get the following infos. Is there a hint?
When you actually use the token yes you will get a 302 to the url you set in the admin panel to redirect the user.
What URL have you defined in the admin panel?
Also, can you check browser console logs? As I see you attached screenshots only from the debugger.
@sunnyson I am very happy that you are helping me too!
@sunnyson and @DMehaffy
Thank you for the good tip!
The problem is now solved!
I accidentally entered “https: // …” in “Redirection url”. Now I’ve learned something again!
Best greetings!
Yeah, that’s exactly what I was expecting to see in your console log and redirect URL. You’re welcome!
Yep!
@DMehaffy @sunnyson Excuse me, I have one more question to ask. I deployed my Strapi app on Heroku. Regardless of what I put in “Redirect URL”, I get the status code 400. What could be the problem? Do I have to enter something in “server.js”?
After you deployed in heroke you should put your Public address instead of localhost into the redirect url.
@sunnyson Yes, I entered “https://my-app-name.herokuapp.com”, but I still got 400.
P.S.: I found the link below, but didn’t understand it.
node.js - Change redirect url for Google provider in Strapi - Stack Overflow
@sunnyson @DMehaffy Oh, I understand, my strapi-back-end address has to be entered, not mein front-end address. Now I can fall asleep better.
Many thanks!
Where did you find back-end address? I’m also on Heroku.