add verbose option for getting user passwords
This commit is contained in:
parent
5f856fe5ca
commit
e00528d9c8
|
@ -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'] == "") {
|
||||
|
|
|
@ -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)';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user