mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
This commit is contained in:
parent
30163e5dca
commit
0d08ac418a
@ -958,8 +958,10 @@ function _pacrypt_crypt($pw, $pw_db = '')
|
|||||||
if ($pw_db) {
|
if ($pw_db) {
|
||||||
return crypt($pw, $pw_db);
|
return crypt($pw, $pw_db);
|
||||||
}
|
}
|
||||||
// Throws E_NOTICE as salt is not specified.
|
// PHP8 - we have to specify a salt here....
|
||||||
return crypt($pw);
|
$salt = substr(str_shuffle('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'), 0, 2);
|
||||||
|
|
||||||
|
return crypt($pw, $salt);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user