mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-29 05:12:18 +01:00
12 lines
423 B
Diff
12 lines
423 B
Diff
--- a/lib/functions.php
|
|
+++ b/lib/functions.php
|
|
@@ -2147,7 +2147,7 @@
|
|
if ($_SESSION[APPCONFIG]->getValue('password', 'no_random_crypt_salt'))
|
|
$new_value = sprintf('{CRYPT}%s',crypt($password_clear,substr($password_clear,0,2)));
|
|
else
|
|
- $new_value = sprintf('{CRYPT}%s',crypt($password_clear,random_salt(2)));
|
|
+ $new_value = sprintf('{CRYPT}%s',crypt($password_clear,'$6$'.random_salt(2)));
|
|
|
|
break;
|
|
|