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