diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-01-23 10:21:14 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-01-23 14:06:03 +0100 |
commit | ebd9f30d85a718c6f89589a4c0116b043093e99a (patch) | |
tree | 88d0c756db220200ff20ea7b3435d67fdab15ffb /lib/private/legacy | |
parent | d59de22525a44ad413e1a57c3e4f6d91434d53a9 (diff) | |
download | nextcloud-server-ebd9f30d85a718c6f89589a4c0116b043093e99a.tar.gz nextcloud-server-ebd9f30d85a718c6f89589a4c0116b043093e99a.zip |
Request plain logout url
By requesting the plain logout url we allow it to be properly cached by
the caching router. We just add the requesttoken manually.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r-- | lib/private/legacy/user.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/private/legacy/user.php b/lib/private/legacy/user.php index e006a59771a..ab87c484db4 100644 --- a/lib/private/legacy/user.php +++ b/lib/private/legacy/user.php @@ -269,12 +269,8 @@ class OC_User { return $backend->getLogoutUrl(); } - $logoutUrl = $urlGenerator->linkToRouteAbsolute( - 'core.login.logout', - [ - 'requesttoken' => \OCP\Util::callRegister(), - ] - ); + $logoutUrl = $urlGenerator->linkToRouteAbsolute('core.login.logout'); + $logoutUrl .= '?requesttoken=' . \OCP\Util::callRegister(); return $logoutUrl; } |