- add possibility to define password-complexity, fixes #292

This commit is contained in:
Michael Kaufmann (d00p)
2010-07-19 08:06:18 +00:00
parent c43574a714
commit 5f34dfa968
9 changed files with 85 additions and 3 deletions

View File

@@ -884,3 +884,16 @@ if(isFroxlorVersion('0.9.10-svn2'))
updateToVersion('0.9.10');
}
if(isFroxlorVersion('0.9.10'))
{
showUpdateStep("Updating from 0.9.10 to 0.9.11-svn1", false);
$update_pwdregex = isset($_POST['update_pwdregex']) ? $_POST['update_pwdregex'] : '';
showUpdateStep("Adding new settings");
$db->query("INSERT INTO `" . TABLE_PANEL_SETTINGS . "` (`settinggroup`, `varname`, `value`) VALUES ('panel', 'password_regex', '".$db->escape($update_pwdregex)."');");
lastStepStatus(0);
updateToVersion('0.9.11-svn1');
}