public function addFailedLogin() { if (!$this->notifyOnFailedLogin()) { if (is_null($this->userData['failedLoginCount']) && is_null($this->userData['failedLoginTime']) || $this->userData['failedLoginTime'] + _LOGIN_FAILED_TIME_BEFORE_RESET_COUNT_SECONDS_ < time()) { AuthUserData::updateFailedLogin($this->userData['userID'], 1, time()); } else { AuthUserData::updateFailedLogin($this->userData['userID'], $this->userData['failedLoginCount'] + 1, $this->userData['failedLoginTime']); } } }