misc: use fixed error message for invalid passwords (#25403)

This commit is contained in:
Frédéric Péters 2018-07-23 11:06:45 +02:00
parent 8ecae2514a
commit aa7d3df158
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ def get_password_checker(*args, **kwargs):
def validate_password(password):
error = password_help_text(password, only_errors=True)
if error:
raise ValidationError(mark_safe(error))
raise ValidationError(_('This password is not accepted.'))
def password_help_text(password='', only_errors=False):