Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recover Password email uses fixed localhost URL #69

Open
duberlyguarnizofuentesrivera opened this issue Jun 23, 2022 · 0 comments
Open

Comments

@duberlyguarnizofuentesrivera
Copy link
Contributor

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant