Fixes in add user

This commit is contained in:
absurdo 2023-11-25 17:20:31 +01:00
parent 426359ec98
commit c94b0360a0

View file

@ -97,9 +97,9 @@ class Linux {
if($password!='') { if($password!='') {
$pass_str='$6$'.\str_replace('$', '\$', \PhangoApp\PhaUtils\Utils::generate_random_password(10)).'$'; $salt_str='\$6\$'.\str_replace('$', '\$', \PhangoApp\PhaUtils\Utils::generate_random_password(10)).'\$';
$hash=crypt($password, str_replace('$', '\$', $pass_str)); $hash=crypt($password, $salt_str);
$str_user.=" -p \"${hash}\""; $str_user.=" -p \"${hash}\"";