Email confirmation error

System Information
  • Strapi Version: 3.5.3
  • Operating System: Windows
  • Database: Postgres
  • Node Version: v14.17.4
  • Yarn Version: 1.22.5

Hello everyone! Im having a reall anoying problem with email confirmation. The email is received, but the link is “wrong”. Let me try to explain:
When I use the <%= URL %>?code=<%= CODE %> the link that I receive is something like this:
http://0.0.0.0:8080/auth/email-confirmation?code=8d6d19d904cb878b10725fecb253f4bef916cc15
So I’ve tried to change for:
https://ddm-api-7bokg.ondigitalocean.app/auth/email-confirmation?code=<%= CODE %>
(this link is the back-end server URL).
With this second change I got an error:
{
“statusCode”: 400,
“error”: “Bad Request”,
“message”: “token.invalid”
}

I have the response and shipper fullfilled:


It is in portuguese, but is just to show that everything is filled.

I don’t know what to do anymore =(

If anyone could give me a light I’ll be really greatfull

Best regards,

Luca Agra

1 Like