update vget namespace
This commit is contained in:
parent
712cf52c87
commit
11bf8a8255
|
@ -50,7 +50,7 @@ class Login extends \Panel {
|
||||||
$auth = new \Auth('smtp', ['host' => $emaildomain, 'port' => 25, 'scheme' => null]);
|
$auth = new \Auth('smtp', ['host' => $emaildomain, 'port' => 25, 'scheme' => null]);
|
||||||
if ($auth->login($username, $password)) {
|
if ($auth->login($username, $password)) {
|
||||||
/* user passed smtp auth, check for admin access */
|
/* 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') {
|
if ($email_array[0]['status'] == '1') {
|
||||||
$messages[] = "Email validated, but does not have admin privileges.";
|
$messages[] = "Email validated, but does not have admin privileges.";
|
||||||
$messages[] = "Please log in with an admin account.";
|
$messages[] = "Please log in with an admin account.";
|
||||||
|
@ -101,7 +101,7 @@ class Login extends \Panel {
|
||||||
}
|
}
|
||||||
} elseif ($f3->get('NAV.mapping') == 'vhost') {
|
} elseif ($f3->get('NAV.mapping') == 'vhost') {
|
||||||
/* user authenticated, check if they own requested domain */
|
/* 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->set('SESSION.expiration', time() + $f3->get('TIMEOUT'));
|
||||||
$f3->reroute('/');
|
$f3->reroute('/');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user