App\Auth\PasswordGrantVerifier::verifyPasswordGrant PHP Method

verifyPasswordGrant() public method

public verifyPasswordGrant ( $username, $password ) : boolean
$username
$password
return boolean
    public function verifyPasswordGrant($username, $password)
    {
        $credentials = ['email' => $username, 'password' => $password];
        if ($this->auth->once($credentials)) {
            return $this->auth->user()->id;
        }
        return false;
    }