mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
- Integrated all the authentications methods and various logon methods...
SVN:trunk[665]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user