/**
  * {@inheritdoc}
  */
 public function validateCredentials(UserInterface $user, array $credentials)
 {
     if (parent::validateCredentials($user, $credentials)) {
         return true;
     }
     throw new AuthenticationException("Incorrect password");
 }
 /**
  * [validateCredentials description].
  *
  * @param Authenticatable $user        [description]
  * @param array           $credentials [description]
  *
  * @return [type] [description]
  */
 public function validateCredentials(Authenticatable $user, array $credentials)
 {
     if (isset($credentials['password'])) {
         return parent::validateCredentials($user, $credentials);
     }
     // We only get a user if retrieveByCredentials found one, no validation needed.
     return !empty($user);
 }
 /**
  * {@inheritdoc}
  */
 public function validateCredentials(Authenticatable $user, array $credentials)
 {
     // Check if we have an authenticated AD user.
     if ($this->user instanceof User) {
         // We'll save the authenticated model in case of changes.
         $user->save();
         return true;
     }
     if ($this->getLoginFallback() && $user->exists) {
         // If the user exists in our local database already and fallback is
         // enabled, we'll perform standard eloquent authentication.
         return parent::validateCredentials($user, $credentials);
     }
     return false;
 }