Example #1
0
 /**
  * Вроверить дополнительные условия для авторизации
  * @param null $userId
  * @return bool
  */
 public function verifyAuthCondition($userId)
 {
     $actions = Action::getRecords($userId, 'auth-error', $this->module->intervalAuthBan, true);
     if ($actions >= $this->module->amountAttemptsAuth) {
         return false;
     }
     return true;
 }