Пример #1
0
 /**
  * Validate the password of the given user.
  *
  * @param User $user
  * @param array $credentials
  *
  * @return bool
  */
 public function validateCredentials(UserInterface $user, array $credentials)
 {
     return $user->checkPassword(array_get($credentials, 'password'));
 }