mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 22:17:03 +03:00
21 lines
365 B
PHP
21 lines
365 B
PHP
<?php
|
|
|
|
namespace SnappyMail\SASL;
|
|
|
|
class Plain extends \SnappyMail\SASL
|
|
{
|
|
|
|
public function authenticate(string $username,
|
|
#[\SensitiveParameter]
|
|
string $passphrase,
|
|
?string $authzid = null) : string
|
|
{
|
|
return $this->encode("{$authzid}\x00{$username}\x00{$passphrase}");
|
|
}
|
|
|
|
public static function isSupported(string $param) : bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
}
|