Fixes in add user
This commit is contained in:
parent
bfeeca3c04
commit
61ae238d88
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ class Linux {
|
|||
|
||||
if($password!='') {
|
||||
|
||||
$hash=crypt($password, '$6$rounds=6000$'.\PhangoApp\PhaUtils\Utils::generate_random_password(10).'$');
|
||||
$hash=crypt($password, '$6$'.\str_replace('$', '\$', PhangoApp\PhaUtils\Utils::generate_random_password(10)).'$');
|
||||
|
||||
$str_user.=" -p \"${hash}\"";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue