Only login if user is not logged-in
This commit is contained in:
parent
0bda09236e
commit
c90a71a83b
|
@ -70,7 +70,9 @@ try {
|
||||||
* Try the appframework routes
|
* Try the appframework routes
|
||||||
*/
|
*/
|
||||||
try {
|
try {
|
||||||
|
if(!\OC::$server->getUserSession()->isLoggedIn()) {
|
||||||
OC::handleLogin(\OC::$server->getRequest());
|
OC::handleLogin(\OC::$server->getRequest());
|
||||||
|
}
|
||||||
OC::$server->getRouter()->match('/ocsapp'.\OC::$server->getRequest()->getRawPathInfo());
|
OC::$server->getRouter()->match('/ocsapp'.\OC::$server->getRequest()->getRawPathInfo());
|
||||||
} catch (ResourceNotFoundException $e) {
|
} catch (ResourceNotFoundException $e) {
|
||||||
OC_API::setContentType();
|
OC_API::setContentType();
|
||||||
|
|
Loading…
Reference in New Issue