1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

Small patch fix

This commit is contained in:
Jimmy Monin 2020-02-16 14:29:19 +01:00
parent 46a5f7515b
commit 87fdec25e7

View file

@ -1,8 +1,8 @@
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php
index 85d3b6b837..e7b9f5fdca 100644
index 13aef8f67a..55d8dbf9d1 100644
--- a/core/Controller/LoginController.php
+++ b/core/Controller/LoginController.php
@@ -130,11 +130,12 @@ class LoginController extends Controller {
@@ -119,11 +119,12 @@ class LoginController extends Controller {
}
$this->userSession->logout();
@ -18,13 +18,4 @@ index 85d3b6b837..e7b9f5fdca 100644
+ $response = new RedirectResponse($redirectUrl);
$this->session->set('clearingExecutionContexts', '1');
$this->session->close();
$response->addHeader('Clear-Site-Data', '"cache", "storage", "executionContexts"');
@@ -329,7 +330,7 @@ class LoginController extends Controller {
['app' => 'core']);
return $this->createLoginFailedResponse($user, $originalUser,
$redirect_url, self::LOGIN_MSG_INVALIDPASSWORD);
- }
+ }
// TODO: remove password checks from above and let the user session handle failures
// requires https://github.com/owncloud/core/pull/24616