From c033826756d09036b2794f5ab85b1e2f44c970ae Mon Sep 17 00:00:00 2001 From: doobry Date: Sun, 17 Jul 2022 17:49:32 +0100 Subject: [PATCH] Display alert about unset two-factor auth as warning, not as error --- default_translations/en/messages.en.yml | 2 +- templates/Start/twofactor.html.twig | 4 ++-- templates/User/twofactor.html.twig | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/default_translations/en/messages.en.yml b/default_translations/en/messages.en.yml index 5c949b90..5f61021a 100644 --- a/default_translations/en/messages.en.yml +++ b/default_translations/en/messages.en.yml @@ -115,7 +115,7 @@ form: account: twofactor: headline: Two-factor authentication - unset: You don't have a two-factor authentication enabled yet. + unset: You don't have two-factor authentication enabled yet. unset-extra: You need a TOTP app on your mobile device to enable two-factor authentication. set: Two-factor authentication is enabled. button: Configure two-factor authentication diff --git a/templates/Start/twofactor.html.twig b/templates/Start/twofactor.html.twig index b484d451..4ddd2c0e 100644 --- a/templates/Start/twofactor.html.twig +++ b/templates/Start/twofactor.html.twig @@ -1,8 +1,8 @@

{{ "account.twofactor.headline"|trans }}

{{ "account.twofactor.lead"|trans }}

{% if not twofactor_enabled %} -

- +

+ {{ "account.twofactor.unset"|trans }}

{% endif %} diff --git a/templates/User/twofactor.html.twig b/templates/User/twofactor.html.twig index 3812df8b..e861e16c 100644 --- a/templates/User/twofactor.html.twig +++ b/templates/User/twofactor.html.twig @@ -26,7 +26,7 @@ {% else %} {% if not twofactor_enabled %}
- + {{ "account.twofactor.unset"|trans }} {{ "account.twofactor.unset-extra"|trans }}