#33696: Add a fail fast option to validate_password().
-------------------------------------+-------------------------------------
     Reporter:  Parth Verma          |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  contrib.auth         |                  Version:  dev
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * status:  new => closed
 * has_patch:  1 => 0
 * resolution:   => wontfix


Comment:

 Thanks for this ticket, however it looks quite niche. In most of cases
 it's preferable to return all validation errors to users, without
 unnecessary round-trip. You can always pass the `password_validators`
 argument in your own code to fail-fast on non-expensive validators, e.g.
 {{{
 validate_password(password, user, password_validators=non-db-validators)
 validate_password(password, user, password_validators=expensive-db-
 validators)
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33696#comment:1>
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 on the web visit 
https://groups.google.com/d/msgid/django-updates/01070180b1a8fcec-a9f36a3d-2269-471c-9a9c-ff6cb8ed3b15-000000%40eu-central-1.amazonses.com.

Reply via email to