icingaweb2/application/views/scripts
Johannes Rauh 650ea2b597 Migrate AuthenticationController to CompatController
Convert `AuthenticationController` from the legacy Zend Controller to
`CompatController`, dropping `login.phtml` in favour of the new `LoginPage`
widget and `addContent()`. The view variable assignments are replaced by
`setTitle()` and `addContent(new LoginPage(...))`. Improve `httpBadRequest()`
message for external redirect attempts.

In `CompatController`, `$this->controls` is the tab bar area rendered
above the page content. When no tabs are added it still emits an empty
`<div class="controls">` wrapper. Setting `$this->view->compact = true`
suppresses that wrapper entirely, keeping the login page markup clean.

Handle the redirect on success in an `ON_SUBMIT` event handler. Delegate
the external-backend-only check to `LoginForm::onRequest()` via `ON_REQUEST`.
Use `$this->getServerRequest()` instead of `ServerRequest::fromGlobals()`.

Two structural fixes required by the changed DOM nesting:
- `login.less`: height `100%` -> `100vh` (`#login` is now inside `.content`
  which has no explicit height, so percentage inheritance breaks)
- `history.js`: `#layout > #login` -> `#layout #login` (direct-child selector
  breaks because `#login` is now a grandchild of `#layout` through `.content`)
2026-05-18 12:14:13 +02:00
..
about Don't mention Twitter anymore, it's gone now for good 2025-03-20 16:36:52 +01:00
account Allow users to change their password if backend is db 2016-07-21 17:38:19 +02:00
announcements Adjust global permissions 2021-02-18 11:11:39 +01:00
authentication Migrate AuthenticationController to CompatController 2026-05-18 12:14:13 +02:00
config Escape invalid module name in error messages 2025-03-20 14:56:53 +01:00
dashboard Normalize confirm remove (#5429) 2026-03-26 16:08:34 +01:00
error error.phtml: Allow to copy errors to clipboard 2026-05-11 14:23:19 +02:00
filter Implement Filter to IDO Sql parser 2013-10-17 19:52:25 +02:00
form Fix some reflected XSS bugs 2023-01-12 09:55:57 +01:00
group Adjust global permissions 2021-02-18 11:11:39 +01:00
index Autorefresh: should work also on initial page load 2014-06-21 01:54:32 +02:00
layout Replace search icon png with fontawesome icon 2025-05-08 08:37:37 +02:00
list Replace static inline styles with css class 2023-08-28 16:30:12 +02:00
navigation navigation/dashboard.phtml: Use ipl-web's Icon for fa- icons 2024-11-04 10:26:06 +01:00
role Auth: Support single inheritance in roles 2021-02-18 11:11:39 +01:00
search Implement modules self provided search configuration 2014-09-04 16:31:10 +02:00
user Adjust global permissions 2021-02-18 11:11:39 +01:00
inline.phtml Template cleanup and validation part 1 2013-08-23 10:27:16 +02:00
joystickPagination.phtml servicegrid: Properly handle ?flipped=0 2018-05-07 14:14:34 +02:00
mixedPagination.phtml Fix some XSS vulnerabilities 2018-07-16 09:53:30 +02:00
pivottablePagination.phtml PivottablePagination view script: show axis type (x/y) in titles 2014-12-19 17:23:11 +01:00
showConfiguration.phtml Remove whitespace around config which couldn't be stored 2025-08-08 14:32:39 +02:00
simple-form.phtml Add tab for create, update and remove user 2015-10-01 09:39:21 +02:00