diff --git a/index.php b/index.php index d2d0700c57..2e55827a62 100644 --- a/index.php +++ b/index.php @@ -68,6 +68,9 @@ else { OC_User::setUserId($_COOKIE['oc_username']); OC_Util::redirectToDefaultPage(); } + else { + OC_User::unsetMagicInCookie(); + } } // Someone wants to log in :