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