[ticket/13204] Tell user that password was incorrect when exceeding attempts

At the end of the login method, the captcha was entered correctly and only
the password was incorrect. Therefore, just tell the user that the password
was incorrect. He will see that he still needs to enter a captcha.

PHPBB3-13204
This commit is contained in:
Marc Alexander 2014-10-25 21:47:18 -07:00
parent 0e772afb9d
commit 0868831675

View file

@ -232,7 +232,7 @@ class db extends \phpbb\auth\provider\base
// Give status about wrong password...
return array(
'status' => ($show_captcha) ? LOGIN_ERROR_ATTEMPTS : LOGIN_ERROR_PASSWORD,
'error_msg' => ($show_captcha) ? 'LOGIN_ERROR_ATTEMPTS' : 'LOGIN_ERROR_PASSWORD',
'error_msg' => 'LOGIN_ERROR_PASSWORD',
'user_row' => $row,
);
}