From ea04579b9de279c973b0259492c8dff6bf7f3c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 23 Jul 2018 09:00:09 +0200 Subject: [PATCH] misc: use fixed error message for invalid passwords (#25403) --- src/authentic2/validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentic2/validators.py b/src/authentic2/validators.py index d1bce8db..3c92cc64 100644 --- a/src/authentic2/validators.py +++ b/src/authentic2/validators.py @@ -90,7 +90,7 @@ class UsernameValidator(RegexValidator): def validate_password(password): error = password_help_text(password, only_errors=True) if error: - raise ValidationError(error) + raise ValidationError(_('This password is not accepted.')) def password_help_text(password='', only_errors=False): -- 2.18.0