예제 #1
0
 /**
  * Checks if the given credentials correponds to a user
  * that exists but is not confirmed
  *
  * @param  array $input
  *
  * @return boolean
  */
 public function existsButNotConfirmed($input)
 {
     $user = Confide::getUserByEmailOrUsername($input);
     if ($user) {
         $correctPassword = Hash::check(isset($input['password']) ? $input['password'] : false, $user->password);
         return !$user->confirmed && $correctPassword;
     }
     return false;
 }