ActionController: Always reload window when redirecting to the login

This ensures that, if CSP is enabled, the newly created token on the
login is accepted by the browser. A small, but IMHO desired, side
effect is that the login now always appears in the default theme.

fixes #5126
This commit is contained in:
Johannes Meyer 2023-09-27 09:48:19 +02:00
parent 610bc5a4fe
commit e5f6fc276a
1 changed files with 2 additions and 1 deletions

View File

@ -399,7 +399,8 @@ class ActionController extends Zend_Controller_Action
} }
} }
$this->rerenderLayout()->redirectNow($login); $this->getResponse()->setReloadWindow(true);
$this->redirectNow($login);
} }
protected function rerenderLayout() protected function rerenderLayout()