From 14bb07ab010b0e38e6afb6d1f7976819477f396b Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 23 Nov 2015 14:46:59 +0800 Subject: Bug 1225366 - allow duo authentication for users already enrolled with duo --- template/en/default/account/prefs/mfa.html.tmpl | 32 ++++++------ template/en/default/mfa/duo/not_enrolled.html.tmpl | 60 ++++++++++++++++++++++ 2 files changed, 76 insertions(+), 16 deletions(-) create mode 100644 template/en/default/mfa/duo/not_enrolled.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 2d80520a1..2fbe45a60 100644 --- a/template/en/default/account/prefs/mfa.html.tmpl +++ b/template/en/default/account/prefs/mfa.html.tmpl @@ -138,7 +138,7 @@ [% IF Param("duo_host") && user.in_group("mozilla-employee-confidential") %]
- Requires a smartphone and a Duo Security + Requires a Duo Security account (recommended for Mozilla employees).
[% END %] @@ -202,25 +202,25 @@ - [%# enable - duo %] - + [% END %] [% END %] diff --git a/template/en/default/mfa/duo/not_enrolled.html.tmpl b/template/en/default/mfa/duo/not_enrolled.html.tmpl new file mode 100644 index 000000000..f6a594dc2 --- /dev/null +++ b/template/en/default/mfa/duo/not_enrolled.html.tmpl @@ -0,0 +1,60 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[% js = BLOCK %] + + $(function() { + $('#return') + .click(function(event) { + event.preventDefault(); + window.history.back(); + }); + }); + +[% END %] + +[% css = BLOCK %] + + #duo_container { + background: #fff; + padding: 10px; + margin-bottom: 1em; + } + +[% END %] + +[% + INCLUDE global/header.html.tmpl + title = "Duo Security Not Available" + style = css + javascript = js +%] + +

You have not enrolled in Duo Security

+ +
+

+ The email address [% email FILTER html %] is not enrolled in Duo Security on + login.mozilla.com. +

+ +

+ Please ensure you are using your Mozilla LDAP username, and that you have + completed the + Duo Security enrollment process. +

+ +

+ Duo Security MFA may not yet be available for your Mozilla account.
+ Contact End User Services / ServiceDesk for more information. +

+
+ + + +[% INCLUDE global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b