Give better error message for blacklisted password

Telling the user what to do, rather than the mistake they’ve made is
usually better.
This commit is contained in:
Chris Hill-Scott
2016-09-27 11:37:20 +01:00
parent 136662bd30
commit 68a6ceec78
2 changed files with 2 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ def password(label='Password'):
return PasswordField(label,
validators=[DataRequired(message='Cant be empty'),
Length(8, 255, message='Must be at least 8 characters'),
Blacklist(message='That password is blacklisted, too common')])
Blacklist(message='Choose a password thats harder to guess')])
def sms_code():