diff --git a/allauth/templates/mfa/authenticate.html b/allauth/templates/mfa/authenticate.html index 2d8d38c5dd..10ec5acb21 100644 --- a/allauth/templates/mfa/authenticate.html +++ b/allauth/templates/mfa/authenticate.html @@ -1,19 +1,18 @@ {% extends "account/base.html" %} - {% load i18n %} -{% load account socialaccount %} - -{% block head_title %}{% trans "Sign In" %}{% endblock %} - +{% block head_title %} + {% trans "Sign In" %} +{% endblock %} {% block content %} -
{% blocktranslate %}Your account is protected by two-factor authentication. Please enter an authenticator code:{% endblocktranslate %}
- - - ++ {% blocktranslate %}Your account is protected by two-factor authentication. Please enter an authenticator code:{% endblocktranslate %} +
+ {% endblock %} diff --git a/allauth/templates/mfa/index.html b/allauth/templates/mfa/index.html index 772bc8eb49..e26a917190 100644 --- a/allauth/templates/mfa/index.html +++ b/allauth/templates/mfa/index.html @@ -1,47 +1,47 @@ {% extends "account/base.html" %} - {% load i18n %} - -{% block head_title %}{% trans "Two-Factor Authentication" %}{% endblock %} - +{% block head_title %} + {% trans "Two-Factor Authentication" %} +{% endblock %} {% block content %} -{% translate "TOTP Authentication is active. " %}
- - - -{% else %} -{% translate "TOTP Authentication is not set up. " %}
- - -{% endif %} -{% blocktranslate with total_count=authenticators.recovery_codes.generate_codes|length count unused_count=authenticators.recovery_codes.get_unused_codes|length %}There is {{ unused_count }} out of {{ total_count }} recovery codes available.{% plural %}There are {{ unused_count }} out of {{ total_count }} recovery codes available.{% endblocktranslate %}
- -{% translate "No recovery codes set up." %}
-{% endif %} -{% translate "Authentication using an authenticator app is active." %}
+{% translate "An authenticator app is not active." %}
++ {% blocktranslate with total_count=authenticators.recovery_codes.generate_codes|length count unused_count=authenticators.recovery_codes.get_unused_codes|length %}There is {{ unused_count }} out of {{ total_count }} recovery codes available.{% plural %}There are {{ unused_count }} out of {{ total_count }} recovery codes available.{% endblocktranslate %} +
+{% translate "No recovery codes set up." %}
+ {% endif %} +{% blocktranslate %}You are about to generate a new set of recovery codes for your account. This action will invalidate your existing codes. Are you sure?{% endblocktranslate %} -
- ++ {% blocktranslate %}You are about to generate a new set of recovery codes for your account. This action will invalidate your existing codes. Are you sure?{% endblocktranslate %} +
+ {% endblock %} diff --git a/allauth/templates/mfa/recovery_codes/index.html b/allauth/templates/mfa/recovery_codes/index.html index 72a5064236..4aaca03546 100644 --- a/allauth/templates/mfa/recovery_codes/index.html +++ b/allauth/templates/mfa/recovery_codes/index.html @@ -1,23 +1,23 @@ {% extends "mfa/recovery_codes/base.html" %} - {% load i18n %} - {% block content %} -{% blocktranslate count unused_count=unused_codes|length %}There is {{ unused_count }} out of {{ total_count }} recovery codes available.{% plural %}There are {{ unused_count }} out of {{ total_count }} recovery codes available.{% endblocktranslate %}
- -{% if unused_codes %} -