Owl\Authenticate\Driver\OwlUserProvider::validateCredentials PHP Method

validateCredentials() public method

Validate a user against the given credentials.
public validateCredentials ( Illuminate\Contracts\Auth\Authenticatable $user, array $credentials ) : boolean
$user Illuminate\Contracts\Auth\Authenticatable
$credentials array
return boolean
    public function validateCredentials(Authenticatable $user, array $credentials)
    {
        $password = $user->getAuthPassword();
        if (password_verify($credentials['password'], $password)) {
            return true;
        }
        // 不正なパスワード
        return false;
    }