Display a notice if a password has been invalidated.

This commit is contained in:
flash 2019-04-29 23:42:42 +02:00
parent f3a2285509
commit 1ab30af87f

View file

@ -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;