-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Method sendMail() in UserServiceImp.java uses a fixed URL pointing to "localhost" to recover password. This has the effect of link not redirecting to the right API URL when a user tries to recover its password, for "localhost" links will pop up as its own machine IP address.
Expected behavior
Recovery URL should point to an API RestPoint within the server domain
Code
String html = "Hola " + name + "! \n" + "¿olvidaste tu contraseña? \n"
+ "Recibimos una petición para restablecer tu contraseña\n"
+ "Para restablecer tu contraseña por favor presiona clic en el siguiente enlace \n"
+ "http://localhost:8081/api/v1/reset-password?token=" + token;
message.setText(html);Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels