Explorar o código

- Fixed Trac #217: can not log-off at the first login after setup.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@696 a333f486-631f-4898-b8df-5754b55c2be0
dflaven %!s(int64=15) %!d(string=hai) anos
pai
achega
719e7f5969
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      setup/index.php

+ 1 - 0
setup/index.php

@@ -963,6 +963,7 @@ function SetupFinished(SetupWebPage $oP, $aParamValues, $iCurrentStep, Config $o
 		{
 		{
 			UserRights::Login($sAuthUser);
 			UserRights::Login($sAuthUser);
 			$_SESSION['auth_user'] = $sAuthUser;
 			$_SESSION['auth_user'] = $sAuthUser;
+			$_SESSION['login_mode'] = 'form'; // Will enable the "log-off button"
 			
 			
 			// remove the tmp config file
 			// remove the tmp config file
 			@unlink(TMP_CONFIG_FILE);
 			@unlink(TMP_CONFIG_FILE);