Esempio n. 1
0
 /**
  * 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);
 }
Esempio n. 2
0
 /**
  * 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);
 }