From d69cebd8c703f0a1f6839944f1c949bce350b02e Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 13 Oct 2015 00:49:00 +0800 Subject: Bug 1199089 - add support for duo-security --- template/en/default/account/prefs/mfa.html.tmpl | 72 +++++++++++++--- template/en/default/admin/params/auth.html.tmpl | 28 +++++-- template/en/default/admin/users/userdata.html.tmpl | 2 + template/en/default/global/user-error.html.tmpl | 2 +- template/en/default/mfa/dummy/verify.html.tmpl | 28 +++++++ template/en/default/mfa/duo/verify.html.tmpl | 95 ++++++++++++++++++++++ template/en/default/mfa/totp/enroll.html.tmpl | 2 - 7 files changed, 209 insertions(+), 20 deletions(-) create mode 100644 template/en/default/mfa/dummy/verify.html.tmpl create mode 100644 template/en/default/mfa/duo/verify.html.tmpl (limited to 'template') diff --git a/template/en/default/account/prefs/mfa.html.tmpl b/template/en/default/account/prefs/mfa.html.tmpl index df272f7d3..2d80520a1 100644 --- a/template/en/default/account/prefs/mfa.html.tmpl +++ b/template/en/default/account/prefs/mfa.html.tmpl @@ -40,11 +40,12 @@ Two-factor authentication is currently enabled using [% SWITCH user.mfa %] [% CASE "TOTP" %]TOTP + [% CASE "Duo" %]Duo Security [% END %].

-
+
[% INCLUDE "mfa/protected.html.tmpl" %] @@ -92,15 +93,26 @@ @@ -111,23 +123,39 @@ -
+

Select the two-factor system you want to use:

- -
- [%# TOTP %] - + + + [%# enable - TOTP %] + @@ -174,6 +202,26 @@
+ [%# enable - duo %] + + [% END %]