From fe77c847348dc6d8633ea60801b8dc5f2462fb24 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 --- templates/Start/twofactor.html.twig | 4 ++-- templates/User/twofactor.html.twig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 }}