コード例 #1
0
ファイル: BasicThrottle.php プロジェクト: azraai/foundation
 /**
  * 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);
 }
コード例 #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);
 }