/** * Determine if the user has too many failed login attempts. * * @return bool */ public function hasTooManyLoginAttempts() { return $this->cacheLimiter->tooManyAttempts($this->getUniqueLoginKey(), $this->maxLoginAttempts(), $this->lockoutTime() / 60); }
/** * Determine if the user has too many failed login attempts. * * @param array $input * * @return bool */ public function hasTooManyLoginAttempts(array $input) { return $this->cacheLimiter->tooManyAttempts($this->getLoginKey($input), $this->maxLoginAttempts(), $this->lockoutTime() / 60); }