misc: use fixed error message for invalid passwords (#25403)
This commit is contained in:
parent
8ecae2514a
commit
aa7d3df158
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue