示例#1
0
 /**
  * Validate a user against the given credentials.
  *
  * @param  \Illuminate\Auth\UserInterface $user
  * @param  array $credentials
  * @return bool
  */
 public function validateCredentials(UserInterface $user, array $credentials)
 {
     return \Hash::check($credentials['password'], $user->getPassword());
 }