/** * Throw exception if user account is currently locked because of too many failed authentication attempts. * * @param string $userName * @param int $userType * @return void * @throws AuthenticationException */ public function throttle($userName, $userType) { $count = $this->requestLogReader->getFailuresCount($userName, $userType); if ($count >= $this->requestLogConfig->getMaxFailuresCount()) { throw new AuthenticationException(__('You did not sign in correctly or your account is temporarily disabled.')); } }