name="revoked_[% api_key.id FILTER html %]"
id="revoked_[% api_key.id FILTER html %]"
[% IF api_key.revoked %] checked="checked" [% END %]>
+ [% IF api_key.revoked %]
+ [% INCLUDE "mfa/protected.html.tmpl" %]
+ [% END %]
[% END %]
@@ -61,15 +66,7 @@ here.
[% IF any_revoked %]
- Hide Revoked Keys
- [%# Show the link if the browser supports JS %]
-
+ Show Revoked Keys
[% END %]
New API key
@@ -79,10 +76,10 @@ providing a description for the API key. The API key will be randomly
generated for you.
-
+
+ [% INCLUDE "mfa/protected.html.tmpl" %]
diff --git a/template/en/default/account/prefs/mfa.html.tmpl b/template/en/default/account/prefs/mfa.html.tmpl
index e3751a5b7..5aed954f9 100644
--- a/template/en/default/account/prefs/mfa.html.tmpl
+++ b/template/en/default/account/prefs/mfa.html.tmpl
@@ -33,6 +33,7 @@
+ [% INCLUDE "mfa/protected.html.tmpl" %]
@@ -50,7 +51,7 @@
[% IF user.mfa == "TOTP" %]
-
[% END %]
@@ -79,70 +80,67 @@
Two-factor authentication is currently disabled.
+
-
-
-
- System:
-
+
+
+ Select the two-factor system you want to use:
+
+
+
- [%# TOTP %]
-
+ [%# TOTP %]
+
-
- Your current password is required to enable two-factor authentication.
-
-
-
-
-
+
+ Your current password is required to enable two-factor authentication.
+
+
+
+
+
-
- Generating new QR code..
-
+
+ Generating new QR code..
+
-
-
-
- Scan this QR code with your TOTP App,
- then enter the six digit code the app generates.
-
-
-
-
+
+
+
+ Scan this QR code with your TOTP App,
+ then enter the six digit code the app generates.
+
+
+
+
-
- If you have problems enrolling, this may be due to an inaccurate time on your device.
- Please check that the time on your device is accurate by visiting http://time.is/.
-
+ If you have problems enrolling, this may be due to an inaccurate time on your device.
+ Please check that the time on your device is accurate by visiting http://time.is/.
+