From e0d4fee515bcc66300ac1248d0d03b0f5e09013d Mon Sep 17 00:00:00 2001 From: Andrew Shumway Date: Thu, 15 Jun 2023 08:54:52 -0600 Subject: [PATCH] Replaced 30 min email exp variable with 1 hour in config for consistency --- app/main/views/two_factor.py | 2 +- tests/app/main/views/test_two_factor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main/views/two_factor.py b/app/main/views/two_factor.py index 231859e47..b2d9ae004 100644 --- a/app/main/views/two_factor.py +++ b/app/main/views/two_factor.py @@ -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) diff --git a/tests/app/main/views/test_two_factor.py b/tests/app/main/views/test_two_factor.py index 64997c207..d4705006c 100644 --- a/tests/app/main/views/test_two_factor.py +++ b/tests/app/main/views/test_two_factor.py @@ -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,