File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -75,15 +75,16 @@ public function __construct(
7575 #[FrontpageRoute(verb: 'GET ' , url: '/logout ' )]
7676 public function logout () {
7777 $ loginToken = $ this ->request ->getCookie ('nc_token ' );
78+ $ uid = $ this ->userSession ->getUser ()->getUID ();
7879 if (!is_null ($ loginToken )) {
79- $ this ->config ->deleteUserValue ($ this -> userSession -> getUser ()-> getUID () , 'login_token ' , $ loginToken );
80+ $ this ->config ->deleteUserValue ($ uid , 'login_token ' , $ loginToken );
8081 }
8182 $ this ->userSession ->logout ();
8283
8384 $ response = new RedirectResponse ($ this ->urlGenerator ->linkToRouteAbsolute (
8485 'core.login.showLoginForm ' ,
8586 ['clear ' => true ] // this param the code in login.js may be removed when the "Clear-Site-Data" is working in the browsers
86- ));
87+ ), Http:: STATUS_SEE_OTHER , [ ' X-User-Id ' => $ uid ] );
8788
8889 $ this ->session ->set ('clearingExecutionContexts ' , '1 ' );
8990 $ this ->session ->close ();
You can’t perform that action at this time.
0 commit comments