diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-04-27 14:55:06 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-04-27 14:55:26 +0200 |
commit | 657d02371c2b905eaacc3fbd7ef22bde15ab1cf0 (patch) | |
tree | d684c468347f80d03a542c49e0571c3989809fa7 | |
parent | a1b309a42adb3090782c602960e9b96e6ae6e858 (diff) | |
download | nextcloud-server-657d02371c2b905eaacc3fbd7ef22bde15ab1cf0.tar.gz nextcloud-server-657d02371c2b905eaacc3fbd7ef22bde15ab1cf0.zip |
fix login
-rw-r--r-- | index.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/index.php b/index.php index fe8f7f15038..9c81928e113 100644 --- a/index.php +++ b/index.php @@ -68,7 +68,6 @@ elseif(OC_User::isLoggedIn()) { } else { OC_App::loadApps(); $error = false; - // remember was checked after last login if(isset($_COOKIE["oc_remember_login"]) && isset($_COOKIE["oc_token"]) && isset($_COOKIE["oc_username"]) && $_COOKIE["oc_remember_login"]) { if(defined("DEBUG") && DEBUG) { @@ -113,7 +112,9 @@ elseif(OC_User::isLoggedIn()) { $error = true; } } - $sectoken=rand(1000000,9999999); - $_SESSION['sectoken']=$sectoken; - OC_Template::printGuestPage('', 'login', array('error' => $error, 'sectoken' => $sectoken, 'redirect' => isset($_REQUEST['redirect_url'])?$_REQUEST['redirect_url']:'' )); + if(is_null(OC::$REQUESTEDFILE)){ + $sectoken=rand(1000000,9999999); + $_SESSION['sectoken']=$sectoken; + OC_Template::printGuestPage('', 'login', array('error' => $error, 'sectoken' => $sectoken, 'redirect' => isset($_REQUEST['redirect_url'])?$_REQUEST['redirect_url']:'' )); + } } |