You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-08-07 17:42:53 +03:00
change default salt method with php_crypt
This commit is contained in:
@@ -1062,7 +1062,7 @@ function _pacrypt_php_crypt($pw, $pw_db) {
|
|||||||
// existing pw provided. send entire password hash as salt for crypt() to figure out
|
// existing pw provided. send entire password hash as salt for crypt() to figure out
|
||||||
$salt = $pw_db;
|
$salt = $pw_db;
|
||||||
} else {
|
} else {
|
||||||
$salt_method = 'missing-from-config';
|
$salt_method = 'MD5'; // default.
|
||||||
// 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
|
||||||
|
Reference in New Issue
Block a user