mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 20:48:25 -04:00
Replaced 30 min email exp variable with 1 hour in config for consistency
This commit is contained in:
@@ -52,7 +52,7 @@ def two_factor_email(token):
|
|||||||
token,
|
token,
|
||||||
current_app.config['SECRET_KEY'],
|
current_app.config['SECRET_KEY'],
|
||||||
current_app.config['DANGEROUS_SALT'],
|
current_app.config['DANGEROUS_SALT'],
|
||||||
current_app.config['EMAIL_2FA_EXPIRY_SECONDS']
|
current_app.config['EMAIL_EXPIRY_SECONDS']
|
||||||
))
|
))
|
||||||
except SignatureExpired:
|
except SignatureExpired:
|
||||||
return render_template('views/email-link-invalid.html', redirect_url=redirect_url)
|
return render_template('views/email-link-invalid.html', redirect_url=redirect_url)
|
||||||
|
|||||||
@@ -434,7 +434,7 @@ def test_two_factor_email_link_has_expired(
|
|||||||
):
|
):
|
||||||
client_request.logout()
|
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(
|
page = client_request.post_url(
|
||||||
url_for_endpoint_with_token('main.two_factor_email', token=valid_token, next=redirect_url),
|
url_for_endpoint_with_token('main.two_factor_email', token=valid_token, next=redirect_url),
|
||||||
_follow_redirects=True,
|
_follow_redirects=True,
|
||||||
|
|||||||
Reference in New Issue
Block a user