1
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2025-08-09 05:02:44 +03:00
This commit is contained in:
Aleksi Kinnunen
2018-05-29 02:37:38 +02:00
committed by GitHub
parent 48c19a1cbd
commit 2df4348f09

View File

@@ -1067,7 +1067,7 @@ function _pacrypt_php_crypt($pw, $pw_db) {
$salt = $pw_db; $salt = $pw_db;
} else { } else {
$salt_method = 'SHA512'; // hopefully a reasonable default (better than MD5) $salt_method = 'SHA512'; // hopefully a reasonable default (better than MD5)
$difficulty = ''; $hash_difficulty = '';
// no pw provided. create new password hash // no pw provided. create new password hash
if (strpos($CONF['encrypt'], ':') !== false) { if (strpos($CONF['encrypt'], ':') !== false) {
// use specified hash method // use specified hash method