UserCreationForm isn't using password_validators_help_text_html
Unlike SetPasswordForm
and AdminPasswordChangeForm
, UserCreationForm
is not using password_validators_help_text_html
. I think this was probably accidentally left out of #25052. This means that the "Add user" form at /admin/auth/user/add/ provides no indication of what the password requirements are unless you provide a password that does not pass validation. Even then, it doesn't list what all of the password requirements are.
I tried adding help_text=password_validation.password_validators_help_text_html()
to the UserCreationForm
form's password1
field, but the CSS didn't work well with this (see the attached screen shot), so now I'm submitting this ticket.
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
changed from nobody to Sasha Gaevsky
|
Status: |
new → assigned
|
Patch needs improvement: |
set
|
Patch needs improvement: |
unset
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Replying to timgraham:
Could you please submit empty "Add user" and "Password change" forms in the admin?
There might be also another styling issue.