mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
#51395 - remove legacy captcha code. authorised by: acyd burn
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10143 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
cb88671638
commit
bf2133d380
1 changed files with 6 additions and 18 deletions
|
@ -67,10 +67,12 @@ function login_db(&$username, &$password)
|
||||||
// Every auth module is able to define what to do by itself...
|
// Every auth module is able to define what to do by itself...
|
||||||
if ($config['max_login_attempts'] && $row['user_login_attempts'] >= $config['max_login_attempts'])
|
if ($config['max_login_attempts'] && $row['user_login_attempts'] >= $config['max_login_attempts'])
|
||||||
{
|
{
|
||||||
$confirm_id = request_var('confirm_id', '');
|
|
||||||
|
|
||||||
// Visual Confirmation handling
|
// Visual Confirmation handling
|
||||||
if (!$confirm_id)
|
|
||||||
|
$captcha =& phpbb_captcha_factory::get_instance($config['captcha_plugin']);
|
||||||
|
$captcha->init(CONFIRM_LOGIN);
|
||||||
|
$vc_response = $captcha->validate();
|
||||||
|
if ($vc_response)
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'status' => LOGIN_ERROR_ATTEMPTS,
|
'status' => LOGIN_ERROR_ATTEMPTS,
|
||||||
|
@ -78,21 +80,7 @@ function login_db(&$username, &$password)
|
||||||
'user_row' => $row,
|
'user_row' => $row,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
$captcha =& phpbb_captcha_factory::get_instance($config['captcha_plugin']);
|
|
||||||
$captcha->init(CONFIRM_LOGIN);
|
|
||||||
$vc_response = $captcha->validate();
|
|
||||||
|
|
||||||
if ($vc_response)
|
|
||||||
{
|
|
||||||
return array(
|
|
||||||
'status' => LOGIN_ERROR_ATTEMPTS,
|
|
||||||
'error_msg' => 'LOGIN_ERROR_ATTEMPTS',
|
|
||||||
'user_row' => $row,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the password convert flag is set we need to convert it
|
// If the password convert flag is set we need to convert it
|
||||||
|
|
Loading…
Add table
Reference in a new issue