diff --git a/docs/setup/administrators/configuration.md b/docs/setup/administrators/configuration.md index 2fb6f9f6a7..402df12422 100644 --- a/docs/setup/administrators/configuration.md +++ b/docs/setup/administrators/configuration.md @@ -48,12 +48,18 @@ The corresponding locale dir is named: en, en_GB, en_US ---- -Number of seconds that password reset and account activation links are valid (default 259200, 3 days). +Number of seconds that password reset links are valid (default 259200, 3 days). PASSWORD_RESET_TIMEOUT = env.int('PASSWORD_RESET_TIMEOUT', 259200) ---- +Number of seconds that account activation links are valid (default 900, 15 minutes). + + PASSWORD_ACTIVATION_TIMEOUT = env.int("PASSWORD_ACTIVATION_TIMEOUT", 900) + +---- + Seconds to enter password on password page while email change/2FA change (default 120). PASSWORD_PAGE_TIMEOUT = env.int('PASSWORD_PAGE_TIMEOUT', 120) diff --git a/hypha/apply/users/templates/two_factor/_base.html b/hypha/apply/users/templates/two_factor/_base.html index 76790f57a1..753e687428 100644 --- a/hypha/apply/users/templates/two_factor/_base.html +++ b/hypha/apply/users/templates/two_factor/_base.html @@ -28,6 +28,9 @@ {{ block.super }} {# Focus the 2FA field. #} {% endblock %} diff --git a/hypha/apply/users/templates/two_factor/core/backup_tokens.html b/hypha/apply/users/templates/two_factor/core/backup_tokens.html index ee2a181076..db847cd533 100644 --- a/hypha/apply/users/templates/two_factor/core/backup_tokens.html +++ b/hypha/apply/users/templates/two_factor/core/backup_tokens.html @@ -2,9 +2,9 @@ {% load static i18n users_tags heroicons %} {% block content_inner %} -
{% blocktrans %}You should now print these codes or copy them to your diff --git a/hypha/apply/users/templates/two_factor/core/backup_tokens_password.html b/hypha/apply/users/templates/two_factor/core/backup_tokens_password.html deleted file mode 100644 index 10f1ef5265..0000000000 --- a/hypha/apply/users/templates/two_factor/core/backup_tokens_password.html +++ /dev/null @@ -1,42 +0,0 @@ -{% extends "two_factor/_base.html" %} -{% load i18n %} - -{% block content %} -
{% blocktrans trimmed %}If you loose your smartphone, or your Authenticator app is not available, - you can use a backup code along with your username and password to login until you recover your smartphone. - Each backup code can be used only once. - - - These codes should be kept in a secure, private place (print them or store them in your password manager) - for when you need them. When they are used up, you can generate a new set of backup codes.{% endblocktrans %}
-{% blocktrans trimmed %}Congratulations, you've successfully enabled two-factor authentication.{% endblocktrans %}
@@ -31,5 +30,4 @@ {% endif %}diff --git a/hypha/apply/users/templates/two_factor/profile/disable.html b/hypha/apply/users/templates/two_factor/profile/disable.html index c0086024b2..1053369a91 100644 --- a/hypha/apply/users/templates/two_factor/profile/disable.html +++ b/hypha/apply/users/templates/two_factor/profile/disable.html @@ -3,8 +3,8 @@ {% block content_inner %} -
{% blocktrans trimmed %}Disabling Two-factor authentication weakens your account security. +
{% blocktrans trimmed %}Disabling Two-factor authentication weakens your account security. We recommend reenabling it when you can.{% endblocktrans %}