Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-08-09 20:27:59 +0400
committerBart Visscher <bartv@thisnet.nl>2012-08-10 13:43:04 +0400
commit667cd318fe19c11a19883536501d9cd562cd6201 (patch)
treef12ef528ee4edd823dd18baf16be7f1e44203b18 /index.php
parentaa9fbf6639e2ce2fa2e8549d2d82d54a745d5327 (diff)
Use OC_Util::displayLoginPage and cleanup the function
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/index.php b/index.php
index 4ffd013aa86..86d268bf285 100755
--- a/index.php
+++ b/index.php
@@ -43,9 +43,6 @@ if (!OC::handleRequest()) {
$error = true;
}
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;
- $redirect_url = (isset($_REQUEST['redirect_url'])) ? OC_Util::sanitizeHTML($_REQUEST['redirect_url']) : $_SERVER['REQUEST_URI'];
- OC_Template::printGuestPage('', 'login', array('error' => $error, 'sectoken' => $sectoken, 'redirect' => $redirect_url));
+ OC_Util::displayLoginPage($error);
}
}