mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
a few changes ;-)
git-svn-id: file:///svn/phpbb/trunk@5934 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -71,15 +71,7 @@ function login_db(&$username, &$password)
|
||||
|
||||
if ($confirm_row)
|
||||
{
|
||||
if (strcasecmp($confirm_row['code'], $confirm_code) == 0)
|
||||
{
|
||||
return array(
|
||||
'status' => LOGIN_ERROR_ATTEMPTS,
|
||||
'error_msg' => 'CONFIRM_CODE_WRONG',
|
||||
'user_row' => $row,
|
||||
);
|
||||
}
|
||||
else
|
||||
if (strcasecmp($confirm_row['code'], $confirm_code) === 0)
|
||||
{
|
||||
$sql = 'DELETE FROM ' . CONFIRM_TABLE . "
|
||||
WHERE confirm_id = '" . $db->sql_escape($confirm_id) . "'
|
||||
@@ -87,6 +79,14 @@ function login_db(&$username, &$password)
|
||||
AND confirm_type = " . CONFIRM_LOGIN;
|
||||
$db->sql_query($sql);
|
||||
}
|
||||
else
|
||||
{
|
||||
return array(
|
||||
'status' => LOGIN_ERROR_ATTEMPTS,
|
||||
'error_msg' => 'CONFIRM_CODE_WRONG',
|
||||
'user_row' => $row,
|
||||
);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user