0001-misc-use-fixed-error-message-for-invalid-passwords-2.patch
src/authentic2/validators.py | ||
---|---|---|
90 | 90 |
def validate_password(password): |
91 | 91 |
error = password_help_text(password, only_errors=True) |
92 | 92 |
if error: |
93 |
raise ValidationError(error)
|
|
93 |
raise ValidationError(_('This password is not accepted.'))
|
|
94 | 94 | |
95 | 95 | |
96 | 96 |
def password_help_text(password='', only_errors=False): |
97 |
- |