mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-25 10:29:14 -04:00
Expect sms 2nd factor codes to be 6 digits
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user