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-10 14:17:13 +0400
committerBart Visscher <bartv@thisnet.nl>2012-08-10 14:17:13 +0400
commit5e7086adc93c501b6fcef8650d6552e95a1b6b28 (patch)
tree7daeefc111fb9ce6f552b310851abeff0d0a260d /index.php
parent1823dafe448070137ce0ac06ff2731e87627c598 (diff)
Move login handling to OC class
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php20
1 files changed, 1 insertions, 19 deletions
diff --git a/index.php b/index.php
index 12a4d4918df..331d7fae8e0 100755
--- a/index.php
+++ b/index.php
@@ -21,26 +21,8 @@
*
*/
-
$RUNTIME_NOAPPS = TRUE; //no apps, yet
require_once('lib/base.php');
-if (!OC::handleRequest()) {
-// Not handled -> we display the login page:
- OC_App::loadApps(array('prelogin'));
- $error = false;
- // remember was checked after last login
- if (OC::tryRememberLogin()) {
- // nothing more to do
-
- // Someone wants to log in :
- } elseif (OC::tryFormLogin()) {
- $error = true;
-
- // The user is already authenticated using Apaches AuthType Basic... very usable in combination with LDAP
- } elseif(OC::tryBasicAuthLogin()) {
- $error = true;
- }
- OC_Util::displayLoginPage($error);
-}
+OC::handleRequest();