#35782: Password validator custom error messages -----------------------+----------------------------------------- Reporter: bcail | Type: Uncategorized Status: new | Component: Uncategorized Version: 5.0 | Severity: Normal Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -----------------------+----------------------------------------- We would like to make it easier to customize the error messages raised by [https://github.com/django/django/blob/main/django/contrib/auth/password_validation.py password validators].
Instead of having to override whole methods, could we put the error messages on the class as attributes, so we would only have to override that attribute for each class? See [https://forum.djangoproject.com/t/password-validator-custom-error- messages/34951 the forum thread] for discussion. Note: [https://code.djangoproject.com/ticket/34116 ticket 34116] is a related ticket that was closed as wontfix, but it was asking for being able to pass the custom error messages through the settings, which is not what this ticket is suggesting. -- Ticket URL: <https://code.djangoproject.com/ticket/35782> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/010701921f296159-803378b8-aef9-4fc0-bb69-3efa2dabdb64-000000%40eu-central-1.amazonses.com.