- added possibility to allow customer to login with their domain-name, fixes #374
This commit is contained in:
@@ -1150,3 +1150,16 @@ if(isFroxlorVersion('0.9.14-svn4'))
|
||||
|
||||
updateToVersion('0.9.14-svn5');
|
||||
}
|
||||
|
||||
if(isFroxlorVersion('0.9.14-svn5'))
|
||||
{
|
||||
showUpdateStep("Updating from 0.9.14-svn5 to 0.9.14-svn6", false);
|
||||
|
||||
$update_allow_domain_login = isset($_POST['update_allow_domain_login']) ? (int)$_POST['update_allow_domain_login'] : '0';
|
||||
|
||||
showUpdateStep("Adding domain-login switch to the settings");
|
||||
$db->query("INSERT INTO `" . TABLE_PANEL_SETTINGS . "` (`settinggroup`, `varname`, `value`) VALUES ('login', 'domain_login', '".(int)$update_allow_domain_login."');");
|
||||
lastStepStatus(0);
|
||||
|
||||
updateToVersion('0.9.14-svn6');
|
||||
}
|
||||
|
||||
@@ -334,4 +334,13 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version)
|
||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
||||
}
|
||||
}
|
||||
|
||||
if(versionInUpdate($current_version, '0.9.14-svn6'))
|
||||
{
|
||||
$has_preconfig = true;
|
||||
$description = 'You can now allow customers to use any of their domains as username for the login.';
|
||||
$question = '<strong>Do you want to enable domain-login for all customers?:</strong> ';
|
||||
$question.= makeyesno('update_allow_domain_login', '1', '0', '0');
|
||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user