diff --git a/panel/classes/Panel/Login.php b/panel/classes/Panel/Login.php index 5e910d3..9a1ab4c 100644 --- a/panel/classes/Panel/Login.php +++ b/panel/classes/Panel/Login.php @@ -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 {