Skip to content
Snippets Groups Projects
Commit 127f93c4 authored by Jared Hancock's avatar Jared Hancock
Browse files

Force login for clients if required

parent 47dd738e
No related branches found
No related tags found
No related merge requests found
......@@ -519,6 +519,10 @@ class OsticketConfig extends Config {
return $this->get('pw_reset_window') * 60;
}
function isClientLoginRequired() {
return $this->get('clients_only');
}
function isCaptchaEnabled() {
return (extension_loaded('gd') && function_exists('gd_info') && $this->get('enable_captcha'));
}
......
......@@ -76,6 +76,8 @@ if($ticket
array_fill(0, 3, 'XXXXXX'),
$page->getBody()
)));
} elseif ($cfg->isClientLoginRequired() && !$thisclient) {
require(CLIENTINC_DIR.'login.inc.php');
} else {
require(CLIENTINC_DIR.'open.inc.php');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment