Skip to content

Commit

Permalink
ActionController: Always reload window when redirecting to the login
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nilmerg committed Sep 28, 2023
1 parent 610bc5a commit e5f6fc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/Icinga/Web/Controller/ActionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ protected function redirectToLogin($redirect = null)
}
}

$this->rerenderLayout()->redirectNow($login);
$this->getResponse()->setReloadWindow(true);
$this->redirectNow($login);
}

protected function rerenderLayout()
Expand Down

0 comments on commit e5f6fc2

Please sign in to comment.