Replaced 30 min email exp variable with 1 hour in config for consistency

This commit is contained in:
Andrew Shumway
2023-06-15 08:54:52 -06:00
parent 1b5de90657
commit e0d4fee515
2 changed files with 2 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ def two_factor_email(token):
token,
current_app.config['SECRET_KEY'],
current_app.config['DANGEROUS_SALT'],
current_app.config['EMAIL_2FA_EXPIRY_SECONDS']
current_app.config['EMAIL_EXPIRY_SECONDS']
))
except SignatureExpired:
return render_template('views/email-link-invalid.html', redirect_url=redirect_url)

View File

@@ -434,7 +434,7 @@ def test_two_factor_email_link_has_expired(
):
client_request.logout()
with set_config(notify_admin, 'EMAIL_2FA_EXPIRY_SECONDS', -1):
with set_config(notify_admin, 'EMAIL_EXPIRY_SECONDS', -1):
page = client_request.post_url(
url_for_endpoint_with_token('main.two_factor_email', token=valid_token, next=redirect_url),
_follow_redirects=True,