mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
16 lines
780 B
Diff
16 lines
780 B
Diff
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php
|
|
index f83b03bc90..568e20dcd7 100644
|
|
--- a/core/Controller/LoginController.php
|
|
+++ b/core/Controller/LoginController.php
|
|
@@ -130,7 +130,10 @@ class LoginController extends Controller {
|
|
}
|
|
$this->userSession->logout();
|
|
|
|
- $response = new RedirectResponse($this->urlGenerator->linkToRouteAbsolute('core.login.showLoginForm'));
|
|
+ $redirectUrl = $this->config->getSystemValue('logout_url',
|
|
+ $this->urlGenerator->linkToRouteAbsolute('core.login.showLoginForm'));
|
|
+
|
|
+ $response = new RedirectResponse($redirectUrl);
|
|
$this->session->set('clearingExecutionContexts', '1');
|
|
$this->session->close();
|
|
$response->addHeader('Clear-Site-Data', '"cache", "storage", "executionContexts"');
|