mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
use _pacrypt_php_crypt
This commit is contained in:
parent
4bc3e1464c
commit
e0c9939f88
@ -1306,8 +1306,9 @@ function pacrypt($pw, $pw_db = "")
|
||||
if (in_array($mechanism, $crypts)) {
|
||||
$mechanism = 'CRYPT';
|
||||
}
|
||||
if ($mechanism == 'PHP_CRYPT:SHA512') {
|
||||
$mechanism = 'SHA512-CRYPT';
|
||||
|
||||
if (preg_match('/^PHP_CRYPT:(DES|MD5|BLOWFISH|SHA256|SHA512):?/', $mechanism, $matches)) {
|
||||
return _pacrypt_php_crypt($pw, $pw_db);
|
||||
}
|
||||
|
||||
if ($mechanism == 'SHA512.B64') {
|
||||
|
Loading…
Reference in New Issue
Block a user