mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-20 03:36:20 +02:00
composer format
This commit is contained in:
parent
309b4a84aa
commit
f1b41e87fa
@ -1310,22 +1310,22 @@ function pacrypt($pw, $pw_db = "")
|
|||||||
$mechanism = 'SHA512-CRYPT';
|
$mechanism = 'SHA512-CRYPT';
|
||||||
}
|
}
|
||||||
|
|
||||||
if($mechanism == 'SHA512.B64') {
|
if ($mechanism == 'SHA512.B64') {
|
||||||
$mechanism = 'SHA512-CRYPT.B64';
|
$mechanism = 'SHA512-CRYPT.B64';
|
||||||
}
|
}
|
||||||
|
|
||||||
if(preg_match('/^DOVECOT:(.*)$/i', $mechanism, $matches)) {
|
if (preg_match('/^DOVECOT:(.*)$/i', $mechanism, $matches)) {
|
||||||
$mechanism = strtoupper($matches[1]);
|
$mechanism = strtoupper($matches[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(preg_match('/^COURIER:(.*)$/i', $mechanism, $matches)) {
|
if (preg_match('/^COURIER:(.*)$/i', $mechanism, $matches)) {
|
||||||
$mechanism = strtoupper($mechanism);
|
$mechanism = strtoupper($mechanism);
|
||||||
}
|
}
|
||||||
if (empty($pw_db)) {
|
if (empty($pw_db)) {
|
||||||
$pw_db = null;
|
$pw_db = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($mechanism == 'AUTHLIB') {
|
if ($mechanism == 'AUTHLIB') {
|
||||||
return _pacrypt_authlib($pw, $pw_db);
|
return _pacrypt_authlib($pw, $pw_db);
|
||||||
}
|
}
|
||||||
$hasher = new \PostfixAdmin\PasswordHashing\Crypt($mechanism);
|
$hasher = new \PostfixAdmin\PasswordHashing\Crypt($mechanism);
|
||||||
|
Loading…
Reference in New Issue
Block a user