﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34116	custom validation error in password_validators	Mojtaba A	nobody	"i wanna have custom validation error in password_validators,
I can do this by rewriting the password validator classes and adding desired messages through options in the settings file and the password_validat section.

something like this :


{{{
AUTH_PASSWORD_VALIDATORS = [
    {
        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
        'OPTIONS': {
            'validation_error': 'My Custom Validation Error.',
        },
    },
    ...
]
}}}


and so on.

Apart from that I want to return custom validation error, for example in our company project we want to send our language based message without enabling t10n and l18n. Or ux writer wants to show the user the desired error according to business needs,
But it is not possible unless we directly override the password_validation classes and this is an extra and dirty work.

Is it worth the time? After spending some time, can I make a pull request?"	New feature	closed	contrib.auth	4.1	Normal	wontfix			Unreviewed	0	0	0	0	0	0
