- Integrated all the authentications methods and various logon methods...

SVN:trunk[665]
This commit is contained in:
Denis Flaven
2010-08-09 10:19:14 +00:00
parent cdf9812fbe
commit 272387d61e
15 changed files with 348 additions and 144 deletions

View File

@@ -959,10 +959,11 @@ function SetupFinished(SetupWebPage $oP, $aParamValues, $iCurrentStep, Config $o
// Start the application
InitDataModel($oP, FINAL_CONFIG_FILE, false); // Load model and startup DB
if (UserRights::Login($sAuthUser, $sAuthPwd))
if (UserRights::CheckCredentials($sAuthUser, $sAuthPwd))
{
UserRights::Login($sAuthUser);
$_SESSION['auth_user'] = $sAuthUser;
$_SESSION['auth_pwd'] = $sAuthPwd;
// remove the tmp config file
@unlink(TMP_CONFIG_FILE);
// try to make the final config file read-only