Removed error message
parent
085af72e14
commit
6eef9dc6ea
|
@ -93,6 +93,7 @@ class LoginController extends AbstractController
|
|||
{
|
||||
if (isset($_POST['user_name'])) {
|
||||
$user = $this->getUser()->getUserByUsername($_POST['user_name']);
|
||||
$this->addMessage(psm_get_lang('login', 'success_password_forgot'), 'success');
|
||||
|
||||
if (!empty($user)) {
|
||||
$token = $this->getUser()->generatePasswordResetToken($user->user_id);
|
||||
|
@ -103,10 +104,7 @@ class LoginController extends AbstractController
|
|||
$token
|
||||
);
|
||||
|
||||
$this->addMessage(psm_get_lang('login', 'success_password_forgot'), 'success');
|
||||
return $this->executeLogin();
|
||||
} else {
|
||||
$this->addMessage(psm_get_lang('login', 'error_user_incorrect'), 'error');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue