add verbose option for getting user passwords

This commit is contained in:
Matthew Saunders Brown 2024-04-15 10:55:24 -07:00
parent 5f856fe5ca
commit e00528d9c8
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ class Users extends \Panel\Vhost {
if ($f3->exists('PARAMS.username')) {
$username = $f3->get('PARAMS.username');
if ($users_array = $f3->call('\Panel::vGet', array("vhost-user-get.sh -u $username -c", FALSE))) {
if ($users_array = $f3->call('\Panel::vGet', array("vhost-user-get.sh -u $username -v -c", FALSE))) {
if ($users_array[0]['passwd'] == "") {
$users_array[0]['passwd'] = '(unavailable)';
}
@ -28,7 +28,7 @@ class Users extends \Panel\Vhost {
}
}
} else {
if ($users_array = $f3->call('\Panel::vGet', array("vhost-user-get.sh -c", FALSE))) {
if ($users_array = $f3->call('\Panel::vGet', array("vhost-user-get.sh -v -c", FALSE))) {
if (is_array($users_array) && count($users_array) > 0) {
foreach ($users_array as $k=>$user_array) {
if ($user_array['passwd'] == "") {

View File

@ -57,7 +57,7 @@ class Vhosts extends \Panel\Vhost {
}
/* get user info */
$username = $vhost_array[0]['username'];
if ($users_array = $f3->call('\Panel::vGet', array("vhost-user-get.sh -u $username -c", FALSE))) {
if ($users_array = $f3->call('\Panel::vGet', array("vhost-user-get.sh -u $username -v -c", FALSE))) {
if ($users_array[0]['passwd'] == "") {
$users_array[0]['passwd'] = '(unavailable)';
}