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