-
-
Notifications
You must be signed in to change notification settings - Fork 527
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
3.1.1 - Adding new User fails to save once Password Method is changed #16709
Comments
Issue is also present when editing a user. |
I guess this issue is related to the change introduced with #16668 It looks like when the radio button is unchecked, no value is submitted for the field "passwordnotifymethod", which then generates an error here in the validation:
I'm not sure, if these 4 lines of code are even necessary or could just be deleted. @smg6511 Can you maybe take a look at this issue? |
Taking a look... |
Ok, easy enough to fix. The PR I put up simply corrects the basic issue. I do agree that the "Show the new password on screen" field is of little to no use. There are some changes I have in mind that would improve this area, but that's better done in another PR. |
Issue seemingly introduced in 3.1.1-pl
When adding a new user and changing the Password Method to anything other than "Let MODX generate a password" - the radio button for "Show the new password on screen" becomes unchecked.
In this state, saving the user is unsuccessful - but no notification is presented on screen so it feels like save was successful.
Checking the "Show the new password on screen" radio button solves the issue.
Since "Show the new password on screen" is the only option under "Password notification method" - it should always remain checked.
It could be argued that it could be removed, depending on what future plans there are for this section.
Environment
MODX 3.1.1-pl
Tested in 3.1.0-pl and the radio does not become unchecked.
The text was updated successfully, but these errors were encountered: