08-28-2019, 11:24 PM
We don't use config.inc.php in order to avoid conflicts. For example, if we add it there now, we would force every corebos install to manually update their config.inc.php file and we couldn't add the change in git.
Either we create new GVs or we create an integration page if the settings require more than one/two variables.
In this case I would create a new variable named User_MandatoryAuthenticationSQL and do something like
I understand that the change I made above retrieves the correct Global Variable value? That worked?
Either we create new GVs or we create an integration page if the settings require more than one/two variables.
In this case I would create a new variable named User_MandatoryAuthenticationSQL and do something like
Code:
$sql_auth_users = GlobalVariable::getVariable('User_MandatoryAuthenticationSQL', 'admin', 'Users', $userid);
$sql_auth_users = explode(',', $sql_auth_users);
if (in_array($usr_name, $sql_auth_users)) {
$this->log->debug("$usr_name exists in sql_auth_users, so using SQL Authentication");
$authType = 'SQL';
}
I understand that the change I made above retrieves the correct Global Variable value? That worked?
Joe
TSolucio
TSolucio