diff --git a/app/auth/forms.py b/app/auth/forms.py index 86e1eed2..fe3f168c 100644 --- a/app/auth/forms.py +++ b/app/auth/forms.py @@ -44,6 +44,9 @@ class RegistrationForm(FlaskForm): if not password.data: return + if password.data == 'password' or password.data == '12345678' or password.data == '1234567890': + raise ValidationError(_l('This password is too common.')) + first_char = password.data[0] # the first character in the string all_the_same = True