Commit Graph

806 Commits

Author SHA1 Message Date
Johannes Meyer 4a8d171aec migrations/index: Let the migrate all button submit the migration form 2023-09-19 14:37:55 +02:00
Yonas Habteab 2657f032dc Allow to automatically fix missing grants & elevalte database users
Co-authored-by: Johannes Meyer
2023-09-19 14:37:55 +02:00
Yonas Habteab fdadba59ca Fix form with mulitple buttons doesn't recognize whether it's been submitted 2023-09-19 14:37:55 +02:00
Yonas Habteab a9db85ed71 Introduce `application/migrations` permission 2023-09-19 14:37:55 +02:00
Yonas Habteab 2daa1447b7 Introduce `MigrationForm` class 2023-09-19 14:37:55 +02:00
Sukhwinder Dhillon 8739a9da73
Fix setup wizard (#5094) 2023-09-07 13:37:10 +02:00
Eric Lippmann 1b91a93e34 Make `host` optional for `oci` database resources
`oci` uses Zend's `Oracle` adapter, which does not use this setting at
all.
2023-09-07 08:51:22 +02:00
raviks789 4e8107c231 RoleForm: Replace static inline styles with css class
The static inline style for resetriction text element is replaced with css class `role-restriction-text`
to avoid Content-Security-Policy violations.
2023-08-28 16:40:37 +02:00
Eric Lippmann 0bac6cfe07 Config: Add setting to enable strict CSP 2023-08-24 16:02:06 +02:00
Sukhwinder Dhillon ee9d139a3a PhpDoc: Fix incorrect `@param` and `@return` type hints 2023-08-23 10:53:15 +02:00
Sukhwinder Dhillon 4d3765b22f PreferenceForm: Fix `Variable '$disabled' is probably undefined`
- Remove obsolete `value` attribute
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon 143347634f NavigationConfigForm: Fix `Variable '$classPath' is probably undefined` 2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon c501e3e2e1 AddMemberForm: Fix `Variable '$userName' is probably undefined` 2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon 0198054943 CreateMembershipForm: Fix `Variable '$groupName' is probably undefined` 2023-08-23 10:53:14 +02:00
raviks789 89630bf0de `ResourceConfigForm`: Import class `Zend_Form_Element`
Class `Zend_Form_Element` is the return type of the method `getForceCreationCheckBox()`. Hence the class should be imported.
2023-08-23 10:53:14 +02:00
raviks789 2eb3b6c405 `ResourceConfigForm`: Fix return type for `edit()` and `remove()` methods 2023-08-23 10:53:14 +02:00
raviks789 eff262cafd `PreferenceForm`: Use correct number of arguments for method `Preferences::get()` 2023-08-23 10:53:14 +02:00
Johannes Meyer c40cfb41a8 RoleForm: Force a suffix for all element names
fixes #4973
2023-06-22 15:04:19 +02:00
Alexander A. Klimov 3784fe80b7 LoggingConfigForm: on Docker default to webserver log 2023-01-24 11:23:34 +01:00
Johannes Meyer ec7fb82a94 login: Don't redirect to external resources
fixes #4945
2022-12-07 11:54:45 +01:00
Alexander A. Klimov a3100d378b SshResourceForm: fix XSS by escaping user-defined resource name
in the tooltip of the message shown instead of the private key.
2022-12-01 11:35:11 +01:00
Johannes Meyer 4d0e42787a ConfigForm: Remove empty sections
fixes #4939
2022-11-02 16:07:53 +01:00
Johannes Meyer 5059a782a8 RoleForm: Use the `<details>` tag 2022-10-10 10:42:45 +02:00
Sukhwinder Dhillon 09d378ab65 ApplicationConfigForm: Remove loop and simplify the code 2022-05-27 14:02:11 +02:00
Sukhwinder Dhillon a250202fa3 ApplicationConfigForm: Remove not required Form elements 2022-05-27 14:02:11 +02:00
Sukhwinder Dhillon aad2419545 Remove obsolete `config_backend` option and not required code
The user preferences backend is now always a `db`.
2022-05-27 14:02:11 +02:00
Johannes Meyer dcb83d9ab5 PreferenceForm: Always enable mode selection if user theme is compatible
fixes #4744
2022-04-11 13:28:36 +02:00
Johannes Meyer 1422f50fad RoleForm: Don't pass null to `preg_match` 2022-03-29 16:35:23 +02:00
moreamazingnick ba677de0c6
Fix missing global theme check refs #4723 (#4724) 2022-03-29 16:34:35 +02:00
Johannes Meyer 3dc384fb58 Avoid passing `null` to non-nullable arguments 2022-03-24 12:29:06 +01:00
Johannes Meyer 0d032989e6 Fix style issues in recent security fixes 2022-03-08 15:20:16 +01:00
Johannes Meyer 9883c36841 SshResourceForm: Don't accept `file://...` as private key 2022-02-23 16:41:40 +01:00
Johannes Meyer 74971359a3 css: Change mode detection to look for `@light-mode` 2022-02-10 11:11:06 +01:00
Johannes Meyer e2a51e75e5 RoleForm: Really only show that everything is allowed if `*` is granted
fixes #4622
2021-12-14 10:22:18 +01:00
Johannes Meyer a9a3288e10
Merge pull request #4567 from Icinga/bugfix/mobile-issues-4562
Bugfix/mobile issues 4562
2021-11-04 08:55:18 +01:00
Johannes Meyer aa101e18c8 PreferenceForm: Don't try to load missing themes 2021-11-02 15:09:26 +01:00
Johannes Meyer 16f1f51f66 GeneralConfigForm: Fix error if there's no config.ini 2021-11-02 13:29:36 +01:00
Florian Strohmaier bdfb75023f PreferenceForm: Add `.theme-mode` class to theme mode control-group
refs #4562
2021-10-26 16:49:15 +02:00
Johannes Meyer 24c1618793 LoginForm: Also disable stay logged in case of no encryption method 2021-08-10 10:09:15 +02:00
Johannes Meyer 0c8466fa93 RoleForm: Make sure to grant general module access...
...if full access is granted
2021-07-27 14:04:29 +02:00
Johannes Meyer 1fd00dcf1c We drop support for the `INI` config backend type with v2.11 2021-07-12 10:35:56 +02:00
Johannes Meyer df49f0c241 PreferenceForm: Detect client changes based on current session
not based on the stored preferences. The session is more up2date.

refs #4417
2021-07-05 18:08:15 +02:00
Johannes Meyer decf8c0588 css: Cleanup login.less and fix layout issues
fixes #4419
2021-07-02 12:12:13 +02:00
Florian Strohmaier 4b75f94573 PreferenceForm: Style theme mode control 2021-06-23 17:34:27 +02:00
Sukhwinder Dhillon 4ba0fb102f PreferencesForm : Reload CSS if theme mode changed 2021-06-23 17:34:27 +02:00
Johannes Meyer ae7b2c47a6 PreferenceForm: Really only reload CSS or redirect if required 2021-06-23 17:34:27 +02:00
Sukhwinder Dhillon 9fbd82e17f PreferenceForm: Add option to change the theme mode 2021-06-23 17:34:27 +02:00
Florian Strohmaier 9a8bf67072 LoginFormn: Use placeholder insted of labels 2021-06-23 07:39:56 +02:00
Johannes Meyer 0756797fbb Make configuration of custom user-group backends possible
refs #2840
2021-06-18 10:41:39 +02:00
Gianluca Piccolo 1e7f700102 Make configuration of custom user backends possible
refs Icinga/icingaweb2#2840
2021-06-18 10:28:35 +02:00