Zend_Auth_Result::FAILURE_IDENTITY_NOT_FOUND,
$this->_identity,
[] );
} $this->session->
migrate(true
);
$this->
setSessionId($this->session->
getId());
$this->
updateExpiry();
$this->
updateSessionId();
// Reset failed login count
$this->
setFailedLogins(0
);
} elseif ($user) { // If more than 4 previous failed logins lock account for n * failedlogins seconds
if ($user->failedlogins >= 4
) { $lockedUntil =
new Zend_Date();
$lockedUntil->
addSecond($this->lockSeconds *
$user->failedlogins
);
$this->
setLockedUntil($lockedUntil);
} // Increase number of failed logins