From 8af5788fc193a245c8aeed3b554a79baaa1bde3a Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 8 Mar 2023 17:29:56 +0000 Subject: more mfa cleanup, set the value in session if mfa is enabled and only allow enabling mfa after a test passed --- view/tpl/settings_account.tpl | 1 + view/tpl/totp_setup.tpl | 177 +++++++++++++----------------------------- 2 files changed, 57 insertions(+), 121 deletions(-) (limited to 'view') diff --git a/view/tpl/settings_account.tpl b/view/tpl/settings_account.tpl index 2b942d694..b0076f380 100644 --- a/view/tpl/settings_account.tpl +++ b/view/tpl/settings_account.tpl @@ -17,6 +17,7 @@
+ Configure MFA
{{$account_settings}} diff --git a/view/tpl/totp_setup.tpl b/view/tpl/totp_setup.tpl index 6bf5885f7..4139e3552 100644 --- a/view/tpl/totp_setup.tpl +++ b/view/tpl/totp_setup.tpl @@ -1,130 +1,65 @@
-
-

{{$title}}

-
- -
- - {{if $secret}} -
-
{{$secret_text}}
-
-
{{$secret}}
-
- {{/if}} - - {{$uri}} - -
-
-
- -
-
- -
-
- -
-
-
- -
-
- - -
- - {{include file="field_checkbox.tpl" field=$enable_mfa}} -
- -
- -
- - -
- +
+

{{$title}}

+
+
+ {{if $secret}} + + {{/if}} + {{$uri}} +
+
+
+ + + {{$test_title_sub}} +
+ +
+ +
+
+
+
+
+ + {{include file="field_checkbox.tpl" field=$enable_mfa}} +
+ +
+
+
+
- -- cgit v1.2.3