Merge pull request #2494 from alphagov/bump-reqs

bump reqs
This commit is contained in:
Leo Hemsted
2018-11-20 11:06:08 +00:00
committed by GitHub
7 changed files with 15 additions and 15 deletions

View File

@@ -160,7 +160,7 @@ def password(label='Password'):
class SMSCode(StringField):
validators = [
DataRequired(message='Cant 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'),
]

View File

@@ -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,