Skip to content

Recover Password email uses fixed localhost URL #69

@duberlyguarnizofuentesrivera

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions