Skip to content

Commit

Permalink
fix max invalid logins
Browse files Browse the repository at this point in the history
  • Loading branch information
ximex committed Nov 11, 2016
1 parent 8433cdb commit f964d08
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions adm_program/system/classes/user.php
Expand Up @@ -341,17 +341,19 @@ public function checkLogin($password, $setAutoLogin = false, $updateSessionCooki
'dateInvalid' => $this->getValue('usr_date_invalid', 'Y-m-d H:i:s')
);

$this->clear();

if ($this->getValue('usr_number_invalid') >= 3)
{
$gLogger->warning('AUTHENTICATION: Maximum number of invalid login!', $loggingObject);

$this->clear();

return $gL10n->get('SYS_LOGIN_MAX_INVALID_LOGIN');
}

$gLogger->warning('AUTHENTICATION: Incorrect username/password!', $loggingObject);

$this->clear();

return $gL10n->get('SYS_LOGIN_USERNAME_PASSWORD_INCORRECT');
}

Expand Down

0 comments on commit f964d08

Please sign in to comment.