aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/api.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api.php b/lib/api.php
index a11dde1c6b8..454a6fd26d3 100644
--- a/lib/api.php
+++ b/lib/api.php
@@ -77,6 +77,8 @@ class OC_API {
} else {
self::respond($response);
}
+ // logout the user to be stateles
+ OC_User::logout();
}
/**