update vget namespace

This commit is contained in:
Matthew Saunders Brown 2022-07-05 15:36:15 -07:00
parent 712cf52c87
commit 11bf8a8255

View File

@ -50,7 +50,7 @@ class Login extends \Panel {
$auth = new \Auth('smtp', ['host' => $emaildomain, 'port' => 25, 'scheme' => null]);
if ($auth->login($username, $password)) {
/* user passed smtp auth, check for admin access */
if ($email_array = $f3->call('\Common\Functions::vGet', array("vmail-mboxes-get.sh -e $username -c", FALSE))) {
if ($email_array = $f3->call('\Panel::vGet', array("vmail-mboxes-get.sh -e $username -c", FALSE))) {
if ($email_array[0]['status'] == '1') {
$messages[] = "Email validated, but does not have admin privileges.";
$messages[] = "Please log in with an admin account.";
@ -101,7 +101,7 @@ class Login extends \Panel {
}
} elseif ($f3->get('NAV.mapping') == 'vhost') {
/* user authenticated, check if they own requested domain */
if ($domain_array = $f3->call('\Common\Functions::vGet', array("vhost-get.sh -u $username -d $domain -c", FALSE))) {
if ($domain_array = $f3->call('\Panel::vGet', array("vhost-get.sh -u $username -d $domain -c", FALSE))) {
$f3->set('SESSION.expiration', time() + $f3->get('TIMEOUT'));
$f3->reroute('/');
} else {