diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-05-11 18:42:28 +0400 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-05-11 18:43:45 +0400 |
commit | 232788396d85a0739c74473a66c3aa215a35d75a (patch) | |
tree | 3edc611d599bc03d30ab18ce15e1abfd10527d91 /index.php | |
parent | 7efa7171e34a39e35cfb44459089fbfcaa4cfdc3 (diff) |
some changes for login
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/index.php b/index.php index 952cd89141a..acca97de796 100644 --- a/index.php +++ b/index.php @@ -61,7 +61,6 @@ elseif(OC_User::isLoggedIn()) { }else{ OC::loadfile(); } - } // For all others cases, we display the guest page : @@ -112,7 +111,7 @@ elseif(OC_User::isLoggedIn()) { $error = true; } } - if(is_null(OC::$REQUESTEDFILE)){ + if(!array_key_exists('sectoken', $_SESSION) || (array_key_exists('sectoken', $_SESSION) && is_null(OC::$REQUESTEDFILE)) || substr(OC::$REQUESTEDFILE, -3) == 'php'){ $sectoken=rand(1000000,9999999); $_SESSION['sectoken']=$sectoken; OC_Template::printGuestPage('', 'login', array('error' => $error, 'sectoken' => $sectoken, 'redirect' => isset($_REQUEST['redirect_url'])?htmlentities($_REQUEST['redirect_url']):'' )); |