Only login if user is not logged-in

pull/400/head
Lukas Reschke 8 years ago committed by Roeland Jago Douma
parent 0bda09236e
commit c90a71a83b
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B

@ -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();

Loading…
Cancel
Save