Exemple #1
0
 /**
  * Get total seconds before doing another login attempts for the user.
  *
  * @param  array  $input
  *
  * @return int
  */
 public function getSecondsBeforeNextAttempts()
 {
     return (int) $this->cacheLimiter->availableIn($this->getUniqueLoginKey());
 }
 /**
  * Get total seconds before doing another login attempts for the user.
  *
  * @param  array  $input
  *
  * @return int
  */
 public function getSecondsBeforeNextAttempts(array $input)
 {
     return (int) $this->cacheLimiter->availableIn($this->getLoginKey($input));
 }