From 61ae238d886f1dc9b10527da517e4c1de71da2ff Mon Sep 17 00:00:00 2001 From: absurdo Date: Sat, 25 Nov 2023 11:43:50 +0100 Subject: [PATCH] Fixes in add user --- vendor/phangoapp/leviathanutils/src/Linux.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/phangoapp/leviathanutils/src/Linux.php b/vendor/phangoapp/leviathanutils/src/Linux.php index dc18146..f5ade99 100644 --- a/vendor/phangoapp/leviathanutils/src/Linux.php +++ b/vendor/phangoapp/leviathanutils/src/Linux.php @@ -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}\"";