mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
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:
@@ -73,7 +73,7 @@ def password(label='Password'):
|
||||
return PasswordField(label,
|
||||
validators=[DataRequired(message='Can’t 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 that’s harder to guess')])
|
||||
|
||||
|
||||
def sms_code():
|
||||
|
||||
Reference in New Issue
Block a user