From c90a71a83bd97c03e78d33c12976c3fcf515bf44 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Fri, 15 Jul 2016 00:13:13 +0200 Subject: [PATCH] Only login if user is not logged-in --- ocs/v1.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ocs/v1.php b/ocs/v1.php index fe7c9a2441..e3ecefccf2 100644 --- a/ocs/v1.php +++ b/ocs/v1.php @@ -70,7 +70,9 @@ try { * Try the appframework routes */ try { - OC::handleLogin(\OC::$server->getRequest()); + if(!\OC::$server->getUserSession()->isLoggedIn()) { + OC::handleLogin(\OC::$server->getRequest()); + } OC::$server->getRouter()->match('/ocsapp'.\OC::$server->getRequest()->getRawPathInfo()); } catch (ResourceNotFoundException $e) { OC_API::setContentType();