0
0
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:
David Goodwin 2021-11-14 20:52:24 +00:00
parent 4bc3e1464c
commit e0c9939f88

View File

@ -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') {