diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-08-10 14:17:13 +0400 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-08-10 14:17:13 +0400 |
commit | 5e7086adc93c501b6fcef8650d6552e95a1b6b28 (patch) | |
tree | 7daeefc111fb9ce6f552b310851abeff0d0a260d /index.php | |
parent | 1823dafe448070137ce0ac06ff2731e87627c598 (diff) |
Move login handling to OC class
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 20 |
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(); |