Projet

Général

Profil

0001-misc-use-fixed-error-message-for-invalid-passwords-2.patch

Frédéric Péters, 23 juillet 2018 09:00

Télécharger (875 octets)

Voir les différences:

Subject: [PATCH] misc: use fixed error message for invalid passwords (#25403)

 src/authentic2/validators.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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
-