authentik
authentik copied to clipboard
Text (read-only) fields, not required "may not be blank"
Describe the bug
Hi,
we have several fields in the settings that might not be set for all users (e.g. uid/gid).
We use a Text (read-only) field in both cases that is set to not be required. They have an initial value expression set that returns an empty string (if the value is not there) - so the placeholder will show in those cases.
Now if a user presses "Save" they get "This field may not be blank"
Note: Maybe you can solve this like it is in Django with a separate settings "blank" that can be True or False ...
How to reproduce
- Create a prompt text field that is readonly and not required with initial value expression
- Add to user settings prompt; Make sure the attribute is empty on the user
- Try to save the settings
Expected behavior
Settings can be saved with an empty value since the value is not required.
Screenshots
No response
Additional context
No response
Deployment Method
Docker
Version
2028.8.4
Relevant log output