Merge pull request #10023 from xini/fix-destroy-session-on-logout

This commit is contained in:
Daniel Hensby 2021-07-20 09:13:20 +01:00
commit 507c70e2f5
No known key found for this signature in database
GPG Key ID: D8DEBC4C8E7BC8B9
2 changed files with 2 additions and 2 deletions

View File

@ -593,7 +593,7 @@ class TinyMCEConfig extends HTMLEditorConfig implements i18nEntityProvider
/**
* Remove the first occurrence of buttons
* @param string|string[] $buttons,... An array of strings, or one or more strings. The button names to remove.
* @param string|string[] $buttons,... An array of strings, or one or more strings. The button names to remove.
*/
public function removeButtons($buttons)
{

View File

@ -112,6 +112,6 @@ class SessionAuthenticationHandler implements AuthenticationHandler
public function logOut(HTTPRequest $request = null)
{
$request = $request ?: Controller::curr()->getRequest();
$request->getSession()->restart($request);
$request->getSession()->destroy();
}
}