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:
authorArthur Schiwon <blizzz@owncloud.com>2012-02-20 14:21:46 +0400
committerArthur Schiwon <blizzz@owncloud.com>2012-02-20 14:21:46 +0400
commit30d524b4260fe3e920b6be1f3818a0fbcbb5adfc (patch)
treef76856d2bce0e246d6184fc98e82209fcbc6a257 /index.php
parent7ff4e40b20dfeb937ff6dccbc87e42a8bc4f5115 (diff)
load apps before logout so that logout-hook works
Diffstat (limited to 'index.php')
-rw-r--r--index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.php b/index.php
index 18ea3022bc5..b4cac1879c6 100644
--- a/index.php
+++ b/index.php
@@ -51,6 +51,7 @@ if($_SERVER['REQUEST_METHOD']=='PROPFIND'){
// Someone is logged in :
elseif(OC_User::isLoggedIn()) {
if(isset($_GET["logout"]) and ($_GET["logout"])) {
+ OC_App::loadApps();
OC_User::logout();
header("Location: ".OC::$WEBROOT.'/');
exit();
@@ -80,7 +81,7 @@ else {
OC_User::unsetMagicInCookie();
}
}
-
+
// Someone wants to log in :
elseif(isset($_POST["user"]) && isset($_POST['password'])) {
if(OC_User::login($_POST["user"], $_POST["password"])) {