mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
Merge pull request #3415 from alphagov/normalise-2fa-code-input
Allow spaces and dashes in the two factor code
This commit is contained in:
@@ -177,6 +177,10 @@ class SMSCode(StringField):
|
||||
def __call__(self, **kwargs):
|
||||
return super().__call__(type='tel', pattern='[0-9]*', **kwargs)
|
||||
|
||||
def process_formdata(self, valuelist):
|
||||
if valuelist:
|
||||
self.data = Columns.make_key(valuelist[0])
|
||||
|
||||
|
||||
class ForgivingIntegerField(StringField):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user