Display a notice if a password has been invalidated.
This commit is contained in:
parent
f3a2285509
commit
1ab30af87f
1 changed files with 5 additions and 0 deletions
|
@ -52,6 +52,11 @@ while (!empty($_POST['login']) && is_array($_POST['login'])) {
|
|||
break;
|
||||
}
|
||||
|
||||
if (empty($userData['password'])) {
|
||||
$notices[] = 'Your password has been invalidated, please reset it.';
|
||||
break;
|
||||
}
|
||||
|
||||
if (!password_verify($_POST['login']['password'], $userData['password'])) {
|
||||
user_login_attempt_record(false, $userData['user_id'], $ipAddress, $userAgent);
|
||||
$notices[] = $loginFailedError;
|
||||
|
|
Loading…
Add table
Reference in a new issue