Skip to content
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

Fix for #7266, Require password for new users from admin #7274

Merged

Conversation

jkazimir
Copy link
Contributor

Require password for new users from admin.

Fixes: #7266

Details

Adds an option to the user edit type to dynamically require the password depending on if the loaded user entity has an id yet.

I know @GawainLynch is closest to the SF forms stuff, and am curious if there's a better way to do this, perhaps a conditional constraint in the AbstractUserType, though this seemed the simplest solution to me currently.

Copy link
Contributor

@GwendolenLynch GwendolenLynch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are possibly better ways, but the amount of work involved with the current code just isn't worth it.

@GwendolenLynch GwendolenLynch merged commit 0dc7269 into bolt:3.4 Dec 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants