Skip to content

changePassword() is accessible if the user is not logged in. #376

Description

@mabelisle

At line 47 of /src/Controller/Trait/PasswordManagementTrait.php, the variable $redirect is set but never used. There is a verification to see if the user is logged in but he is never redirected to the login action.

I recommend replacing the line with:

return $this->redirect($this->Auth->config('loginAction'));

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions