From e68b9d00a6e05b3a941f63ffb696f91e554ac5ec Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 18 Oct 2024 20:33:49 +0200 Subject: Adding upstream version 9.0.3. Signed-off-by: Daniel Baumann --- templates/user/settings/security/twofa.tmpl | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 templates/user/settings/security/twofa.tmpl (limited to 'templates/user/settings/security/twofa.tmpl') diff --git a/templates/user/settings/security/twofa.tmpl b/templates/user/settings/security/twofa.tmpl new file mode 100644 index 0000000..adebce4 --- /dev/null +++ b/templates/user/settings/security/twofa.tmpl @@ -0,0 +1,37 @@ +

+ {{ctx.Locale.Tr "settings.twofa"}} +

+
+

{{ctx.Locale.Tr "settings.twofa_desc"}}

+ {{if .TOTPEnrolled}} +

{{ctx.Locale.Tr "settings.twofa_is_enrolled"}}

+
+ {{.CsrfTokenHtml}} +

{{ctx.Locale.Tr "settings.regenerate_scratch_token_desc"}}

+ +
+
+ {{.CsrfTokenHtml}} +

{{ctx.Locale.Tr "settings.twofa_disable_note"}}

+ +
+ {{else}} + {{/* The recovery tip is there as a means of encouraging a user to enroll */}} +

{{ctx.Locale.Tr "settings.twofa_recovery_tip"}}

+

{{ctx.Locale.Tr "settings.twofa_not_enrolled"}}

+ + {{end}} + + +
-- cgit v1.2.3