From f4dcf5bd189dc55cd0d19fb02f35fb203b8dd7d3 Mon Sep 17 00:00:00 2001 From: Mia Arh Date: Mon, 8 Mar 2021 17:05:54 +0100 Subject: [PATCH] Update security screen --- auth/assets/templates/security.html.tpl | 37 +++++++++++-------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/auth/assets/templates/security.html.tpl b/auth/assets/templates/security.html.tpl index 18a32e087..f0b0fcbcc 100644 --- a/auth/assets/templates/security.html.tpl +++ b/auth/assets/templates/security.html.tpl @@ -22,30 +22,27 @@
Additional security with mobile app (time-based one-time-password)
-
+
{{ if .totpEnforced }} -

+ {{ else }} -

+ {{ end }} -
-
{{ if .totpEnforced }} Configured and required on login. {{ else }} Currently disabled. {{ end }}
-
+
{{ if .totpEnforced }} {{ if not .settings.MultiFactor.TOTP.Enforced }} - + {{ end }} {{ else }} - + {{ end }}
-
{{ end }} @@ -54,27 +51,25 @@
Additional security with one-time-password over email
-
- {{ if .emailOtpEnforced }} -

- {{ else }} -

- {{ end }} -
-
+
+ {{ if .emailOtpEnforced }} + + {{ else }} + + {{ end }} {{ if .emailOtpEnforced }} Enabled and required on login. {{ else }} Currently disabled. {{ end }}
-
+
{{ if .emailOtpEnforced }} {{ if not .settings.MultiFactor.EmailOTP.Enforced }} - + {{ end }} {{ else }} - + {{ end }}
@@ -82,7 +77,7 @@
{{ end }} {{ else }} -