#36140: UserCreationForm doesn't allow empty password even if password fields 
are
specified as "not required"
-------------------------------------+-------------------------------------
     Reporter:  buffgecko12          |                     Type:  Bug
       Status:  new                  |                Component:  Forms
      Version:  5.1                  |                 Severity:  Normal
     Keywords:  form                 |             Triage Stage:
  usercreationform validation        |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
 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
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36140>
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/01070194a3986c0d-2feee6ad-9b9b-4967-8f95-767424996d3c-000000%40eu-central-1.amazonses.com.

Reply via email to