Fixes in add user
This commit is contained in:
parent
426359ec98
commit
c94b0360a0
1 changed files with 2 additions and 2 deletions
|
|
@ -97,9 +97,9 @@ class Linux {
|
|||
|
||||
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}\"";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue