$urlPrefix = $this->Application->getModule('friendly-url')->getUrlPrefix();
$location = sprintf("%s://%s:%s@%s:%d%s", $http_protocol, $cfgData['baculum']['login'], $cfgData['baculum']['password'], $_SERVER['SERVER_NAME'], $_SERVER['SERVER_PORT'], $urlPrefix);
header("Location: $location");
- exit();
+ return;
} else { // standard version (user defined auth method)
$this->goToDefaultPage();
}
$this->Logging->Checked = $this->getModule('logging')->isDebugOn();
}
- $directors = $this->getModule('api')->get(array('directors'))->output;
-
if(!$this->IsPostBack && !$this->IsCallBack) {
+ $directors = $this->getModule('api')->get(array('directors'))->output;
if(!array_key_exists('director', $_SESSION)) {
$_SESSION['director'] = $directors[0];
}