mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 15:45:55 +08:00
Fix oauthbearer encoding
This commit is contained in:
parent
682af34d53
commit
95a84f8e62
|
@ -11,7 +11,7 @@ class OAuth extends \SnappyMail\SASL
|
|||
{
|
||||
public function authenticate(string $username, string $passphrase, ?string $authzid = null) : string
|
||||
{
|
||||
return $this->encode("user={$username}\x01auth=Bearer {$passphrase}\x01\x01");
|
||||
return $this->encode("n,a={$username},\x01auth=Bearer {$passphrase}\x01\x01");
|
||||
}
|
||||
|
||||
public static function isSupported(string $param) : bool
|
||||
|
|
Loading…
Reference in a new issue