Only login if user is not logged-in

This commit is contained in:
Lukas Reschke 2016-07-15 00:13:13 +02:00 committed by Roeland Jago Douma
parent 0bda09236e
commit c90a71a83b
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 3 additions and 1 deletions

View File

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