#36140: UserCreationForm doesn't allow empty password even if password fields
are
specified as "not required"
-------------------------------------+-------------------------------------
Reporter: buffgecko12 | Owner: (none)
Type: Bug | Status: new
Component: contrib.auth | Version: 5.1
Severity: Release blocker | Resolution:
Keywords: form | Triage Stage: Accepted
usercreationform validation |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by buffgecko12:
Old description:
> There was a change made to UserCreationForm (django.contrib.auth.forms)
> in Django 5.1 which seems to require a password to be provided even if
> the password1 / password2 fields are explicitly marked as required =
> False. It looks like the validate_passwords() method is still being
> called even if the fields are marked as required = False.
>
> Please see this issue for the details:
>
> https://stackoverflow.com/questions/79387857/django-5-1-usercreationform-
> wont-allow-empty-passwords
New description:
There was a change made to UserCreationForm (django.contrib.auth.forms) in
Django 5.1 which seems to require a password to be provided even if the
password1 / password2 fields are explicitly marked as required = False.
It looks like the validate_passwords() method is still being called even
if the fields are marked as required = False.
Please see this issue for the details:
https://stackoverflow.com/questions/79387857/django-5-1-usercreationform-
wont-allow-empty-passwords
---------------------------------
I tried responding to your comment but the webpage won't let me submit my
reply -- it says my submission is probably spam. Here's my response to
your comment:
''I would love to work on it, but I don't want to hold up the release.
Please go ahead.''
--
--
Ticket URL: <https://code.djangoproject.com/ticket/36140#comment:11>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/01070194b22a896f-f3bc4969-5eba-4c96-a5d8-918021c002aa-000000%40eu-central-1.amazonses.com.