From 043c7523acd6af5288191b15f746fc360b73ab40 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 23 Sep 2015 11:54:41 +0800 Subject: Bug 1199087 - extend 2fa protection beyond login --- .../password/set-forgotten-password.html.tmpl | 5 +- .../en/default/account/prefs/account.html.tmpl | 2 + template/en/default/account/prefs/apikey.html.tmpl | 25 ++--- template/en/default/account/prefs/mfa.html.tmpl | 112 ++++++++++----------- .../en/default/account/prefs/settings.html.tmpl | 3 + template/en/default/global/code-error.html.tmpl | 3 + template/en/default/global/user-error.html.tmpl | 9 +- template/en/default/mfa/protected.html.tmpl | 12 +++ template/en/default/mfa/totp/verify.html.tmpl | 18 ++-- 9 files changed, 106 insertions(+), 83 deletions(-) create mode 100644 template/en/default/mfa/protected.html.tmpl (limited to 'template') diff --git a/template/en/default/account/password/set-forgotten-password.html.tmpl b/template/en/default/account/password/set-forgotten-password.html.tmpl index a2ae517c8..cfeacbb93 100644 --- a/template/en/default/account/password/set-forgotten-password.html.tmpl +++ b/template/en/default/account/password/set-forgotten-password.html.tmpl @@ -36,18 +36,19 @@ (minimum [% constants.USER_PASSWORD_MIN_LENGTH FILTER none %] characters) - + New Password Again: - +   + [% INCLUDE mfa/protected.html.tmpl user=token_user %] diff --git a/template/en/default/account/prefs/account.html.tmpl b/template/en/default/account/prefs/account.html.tmpl index bfae7f071..3f838691b 100644 --- a/template/en/default/account/prefs/account.html.tmpl +++ b/template/en/default/account/prefs/account.html.tmpl @@ -72,6 +72,7 @@ New password: + [% INCLUDE "mfa/protected.html.tmpl" %] @@ -109,6 +110,7 @@ New email address: + [% INCLUDE "mfa/protected.html.tmpl" %] [% END %] diff --git a/template/en/default/account/prefs/apikey.html.tmpl b/template/en/default/account/prefs/apikey.html.tmpl index 8b740cf1e..926f3838b 100644 --- a/template/en/default/account/prefs/apikey.html.tmpl +++ b/template/en/default/account/prefs/apikey.html.tmpl @@ -14,8 +14,10 @@

API keys are used to authenticate WebService API calls. You can create more than one API key if required. Each API key has an optional description which can help - you record what each key is used for. Documentation on how to log in is available from - + you record what each key is used for.
+
+ Documentation on how to log in is available +
here.

@@ -33,7 +35,7 @@ here.

[% FOREACH api_key IN api_keys %] - +