From 05fed61671067cb6a750d41909ccb5692ba43808 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 29 Sep 2015 22:57:02 +0800 Subject: Bug 1199090 - add printable recovery 2fa codes --- template/en/default/account/prefs/mfa.html.tmpl | 88 ++++++++++++++++++------- 1 file changed, 63 insertions(+), 25 deletions(-) (limited to 'template/en/default/account') diff --git a/template/en/default/account/prefs/mfa.html.tmpl b/template/en/default/account/prefs/mfa.html.tmpl index 5aed954f9..df272f7d3 100644 --- a/template/en/default/account/prefs/mfa.html.tmpl +++ b/template/en/default/account/prefs/mfa.html.tmpl @@ -23,7 +23,19 @@ [% END %]
- [% IF user.mfa %] + [% IF mfa_recovery_token %] + + +

+ Here are your recovery codes. +

+ + [% INCLUDE recovery_blurb %] + + + [% ELSIF user.mfa %]

Two-factor authentication is currently enabled using [% SWITCH user.mfa %] @@ -32,30 +44,15 @@

- - [% INCLUDE "mfa/protected.html.tmpl" %] - -
+ +[% BLOCK recovery_blurb %] + +[% END %] -- cgit v1.2.3-24-g4f1b