diff options
Diffstat (limited to 'lib/private/legacy/user.php')
-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; } |