Last active
September 23, 2016 02:11
-
-
Save Sarav-S/c0c141f57ae2d5735f8a578eb3705c18 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Validate a user against the given credentials. | |
* | |
* @param \Illuminate\Contracts\Auth\Authenticatable $user | |
* @param array $credentials | |
* @return bool | |
*/ | |
public function validateCredentials(UserContract $user, array $credentials) | |
{ | |
$plain = $credentials['password']; | |
return $this->hasher->check($plain, $user->getAuthPassword()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment