mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-17 04:59:37 -04:00
@@ -160,7 +160,7 @@ def password(label='Password'):
|
||||
class SMSCode(StringField):
|
||||
validators = [
|
||||
DataRequired(message='Can’t be empty'),
|
||||
Regexp(regex='^\d+$', message='Numbers only'),
|
||||
Regexp(regex=r'^\d+$', message='Numbers only'),
|
||||
Length(min=5, message='Not enough numbers'),
|
||||
Length(max=5, message='Too many numbers'),
|
||||
]
|
||||
|
||||
@@ -41,7 +41,7 @@ def two_factor_email(token):
|
||||
current_app.config['DANGEROUS_SALT'],
|
||||
current_app.config['EMAIL_2FA_EXPIRY_SECONDS']
|
||||
))
|
||||
except SignatureExpired as exc:
|
||||
except SignatureExpired:
|
||||
# lets decode again, without the expiry, to get the user id out
|
||||
orig_data = json.loads(check_token(
|
||||
token,
|
||||
|
||||
Reference in New Issue
Block a user