From cc56bdfe44e45c203f71c7d21081a52baeb56d96 Mon Sep 17 00:00:00 2001
From: Saurabh Kumar {% blocktrans %}Thank you for your submission to the {{ ORG_LONG_NAME }}.{%
{{ email_context.confirmation_text_extra|urlize }}
+ {% if email_context.confirmation_text_extra %} +{{ email_context.confirmation_text_extra|urlize }}
+ {% endif %} {% endwith %} - {% block extra_text %} -+
{% blocktrans %} Tip: You are entering sudo mode. After you've performed a sudo-protected action, you'll only be asked to re-authenticate again after a few hours of inactivity. diff --git a/hypha/apply/users/templates/two_factor/_base_focus.html b/hypha/apply/users/templates/two_factor/_base_focus.html index 2a63a6db9b..d53a7af9f9 100644 --- a/hypha/apply/users/templates/two_factor/_base_focus.html +++ b/hypha/apply/users/templates/two_factor/_base_focus.html @@ -13,10 +13,12 @@ {% endslot %} {% comment %} {% slot sub_heading %}{% trans "All submissions ready for discussion." %}{% endslot %} {% endcomment %} - - {% trans "Go to my dashboard" %} - - + {% if user.can_access_dashboard %} + + {% trans "Go to my dashboard" %} + + + {% endif %} {% endadminbar %}
{% blocktrans trimmed %}However, it might happen that you don't have access to your primary token device. To enable account recovery, add a phone number.{% endblocktrans %}
- +{% trans "Add Phone Number" %}
{% endif %} diff --git a/hypha/apply/users/templates/two_factor/core/two_factor_required.html b/hypha/apply/users/templates/two_factor/core/two_factor_required.html index ad0f7254cf..d5cf73ae1f 100644 --- a/hypha/apply/users/templates/two_factor/core/two_factor_required.html +++ b/hypha/apply/users/templates/two_factor/core/two_factor_required.html @@ -1,22 +1,38 @@ - {% extends "two_factor/_base_focus.html" %} {% load i18n %} {% block content %} -+ {% blocktrans trimmed %} + The page you are trying to access requires users to verify their + identity using two-factor authentication for security reasons. + {% endblocktrans %} +
+ ++ {% blocktrans trimmed %} + In order to access this page, you need to set up these security + features. Without setting them up, you will only be able to access + your account's profile section or log out from the system. + {% endblocktrans %} +
+ ++ {% blocktrans trimmed %} + Two-factor authentication has not been set up + for your account yet. Please set it up to enhance + the security of your account. + {% endblocktrans %} +
+{% blocktrans trimmed %}The page you requested, enforces users to verify using - two-factor authentication for security reasons. You need to set up these - security features in order to access this page. Without setting up these security features, - You can only access the account(Profile section) or can logout from the system.{% endblocktrans %}
-{% blocktrans trimmed %}Two-factor authentication is not already set up for your - account. Set up two-factor authentication for enhanced account - security.{% endblocktrans %}
+ + {% trans "Set up Two-Factor Authentication (2FA)" %} + -- - {% trans "Set up Two-Factor Authentication (2FA)" %} -
{% endblock %} diff --git a/hypha/apply/users/templates/two_factor/profile/disable.html b/hypha/apply/users/templates/two_factor/profile/disable.html index 683c8c3038..b4dc0b43c9 100644 --- a/hypha/apply/users/templates/two_factor/profile/disable.html +++ b/hypha/apply/users/templates/two_factor/profile/disable.html @@ -1,39 +1,40 @@ + {% extends "two_factor/_base_focus.html" %} {% load i18n %} {% block content %} -{% 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 %}
-+ {% if user.has_usable_password %} + + {% trans "Update password" %} + + {% else %} + + {% endif %} +
+{% trans "Two possible reasons:" %}
-{% blocktrans %}First try to reset your password. If that fails please contact {{ ORG_SHORT_NAME }} at{% endblocktrans %} {{ ORG_EMAIL }}
-{% trans "Two possible reasons:" %}
+{% blocktrans %}First try to reset your password. If that fails please contact {{ ORG_SHORT_NAME }} at{% endblocktrans %} {{ ORG_EMAIL }}
+ +{% trans "To start using the new email, please click on the confirmation link that has been sent to you on your new email." %}
+ + {% adminbar %} + {% slot header %}{% trans "Email Update" %}{% endslot %} + {% endadminbar %} + ++ {% trans "We have sent a confirmation link to your new email." %} +
++ {% trans "To start using the new email, please click on the confirmation link that has been sent to you on your new email." %} +
{% trans "As a last resort, you can use a backup codes:" %} + class="button button--transparent">{% trans "Use Backup Code" %}
{% endif %} {% endif %} diff --git a/hypha/apply/users/templates/users/partials/confirmation_code_sent.html b/hypha/apply/users/templates/users/partials/confirmation_code_sent.html new file mode 100644 index 0000000000..c3a7f8fedd --- /dev/null +++ b/hypha/apply/users/templates/users/partials/confirmation_code_sent.html @@ -0,0 +1,74 @@ +{% load i18n heroicons %} +{% trans "Invalid code, please try again!" %}
+ {% else %} ++ {% heroicon_mini "check-circle" class="inline align-text-bottom fill-green-700" aria_hidden=true %} + {% trans "An email containing a code has been sent. Please check your email for the code." %} +
+ {% endif %} + +{% trans "Having problems?" %}
+ ++ {% if ENABLE_PUBLIC_SIGNUP %} + {% trans "We have sent you an email containing a link for logging in or signing up. Please check your email and use the link provided to either login or create your account." %}
+ {% else %} + {% trans "We've sent you an email with a login link. Kindly check your email and follow the link to access your account." %} + {% endif %} + + ++ {% blocktrans %}Check your "Spam" folder, if you don't find the email in your inbox.{% endblocktrans %} +
+ ++ Try again +
+