Expect sms 2nd factor codes to be 6 digits

This commit is contained in:
Ryan Ahearn
2023-02-17 11:53:44 -05:00
parent ee2c3ebc27
commit d9f1ee5af6
7 changed files with 31 additions and 31 deletions

View File

@@ -350,8 +350,8 @@ class SMSCode(GovukTextInputField):
validators = [
DataRequired(message='Cannot be empty'),
Regexp(regex=r'^\d+$', message='Numbers only'),
Length(min=5, message='Not enough numbers'),
Length(max=5, message='Too many numbers'),
Length(min=6, message='Not enough numbers'),
Length(max=6, message='Too many numbers'),
]
def __call__(self, **kwargs):