New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You can't add a user if email login is set in security #5951
Comments
might get fixed as part of #5952 ? |
A quick fix might be to remove the clientside validation on the username field if there is currently no easy way to know the security settings when that form is rendered? |
The form already fetches the usergroup control panel settings. I haven't looked at the details but I would guess it's not hard to make it also fetch the security settings. |
Is this why the user name field does not have the required asterisk? |
This shouldn't happen see: https://github.com/plone/plone.restapi/blob/5cf1418e928f143ef1b42fdc3e4ed72a3126e9dd/src/plone/restapi/services/users/add.py#L69-L71 What version of |
It appears that this is mostly a Volto 16 issue, as in Volto 17 we use the userschema to display the fields where the username field isn't required so can be skipped over. I've included screenshots below showing the difference in an out-the-box Volto experience Add user form in Volto 16 However, it still isn't ideal that this field is display. I did look into adding the @djay @davisagli Any thoughts on this? |
Describe the bug
You can't add a user if email login is set in security settings
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No login name field is displayed when adding a user and a user can be added
Screenshots
If applicable, add screenshots to help explain your problem.
Software (please complete the following information):
Additional context
Related issue is that the login dialog doesn't change to ask for email address instead of login name when login by email is turned on
The text was updated successfully, but these errors were encountered: