Allow apps to load before login, needed for user_openid

This commit is contained in:
Bart Visscher 2012-06-18 12:44:06 +02:00
parent 405ac36e0c
commit 79f9d61ec8
2 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@
<require>4</require> <require>4</require>
<shipped>true</shipped> <shipped>true</shipped>
<types> <types>
<prelogin/>
<authentication/> <authentication/>
</types> </types>
</info> </info>

View File

@ -69,6 +69,7 @@ elseif(OC_User::isLoggedIn()) {
// For all others cases, we display the guest page : // For all others cases, we display the guest page :
} else { } else {
OC_App::loadApps(array('prelogin'));
$error = false; $error = false;
// remember was checked after last login // 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(isset($_COOKIE["oc_remember_login"]) && isset($_COOKIE["oc_token"]) && isset($_COOKIE["oc_username"]) && $_COOKIE["oc_remember_login"]) {