#33696: Add a fail fast option to validate_password
------------------------------------------------+------------------------
Reporter: Parth Verma | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.auth | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
Right now, the `validate_password` function runs all the validators in the
list. However, while implementing something like a validator to prevent
password reuse, we might want the user to resolve all the other validation
errors before running an expensive DB operation. Adding a fail fast option
might be helpful here as it will allow to resolve validation errors as
they appear rather than running all the validators again everytime.
--
Ticket URL: <https://code.djangoproject.com/ticket/33696>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.