From d69cebd8c703f0a1f6839944f1c949bce350b02e Mon Sep 17 00:00:00 2001
From: Byron Jones
- +
+ [%# disable/recovery - totp %] [% IF user.mfa == "TOTP" %] - + + + autocomplete="off" required> + + [%# disable/recovery - duo %] + [% ELSIF user.mfa == "Duo" %] + ++ + Verification with Duo Security will be performed before your account is updated. +
+ [% END %]Select the two-factor system you want to use:
- -+ Requires a smartphone and a TOTP app (such as + Google Authenticator + or Red Hat FreeOTP). ++ + [% IF Param("duo_host") && user.in_group("mozilla-employee-confidential") %] +
+ Requires a smartphone and a Duo Security + account (recommended for Mozilla employees). ++ [% END %] +
Your current password is required to enable two-factor authentication.
- +
++ + +
+ +
+
+ Verification with Duo Security will be performed before your account is updated.
+
+ [% IF user.in_group("mozilla-employee-confidential") %]
+ You must
+ sign up for Duo Security via login.mozilla.com before you can use Duo 2FA.
+ [% END %]
+
+ [% reason FILTER html %] requires verification, and your configured + two-factor provider is no longer available. +
+ + + +[% INCLUDE global/footer.html.tmpl %] diff --git a/template/en/default/mfa/duo/verify.html.tmpl b/template/en/default/mfa/duo/verify.html.tmpl new file mode 100644 index 000000000..627b82039 --- /dev/null +++ b/template/en/default/mfa/duo/verify.html.tmpl @@ -0,0 +1,95 @@ +[%# 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. + #%] + +[% is_enrolment = action == "enable" %] + +[% js = BLOCK %] +$(function() { + + $('#recovery-toggle') + .click(function(event) { + event.preventDefault(); + + if ($('#duo_container').is(':visible')) { + $('#duo_container').hide(); + $('#recovery').show(); + $('#code').attr('required', true).focus(); + $('#recovery-submit').attr('disabled', false); + $(this).text('Verify using Duo Security'); + } + else { + $('#duo_container').show(); + $('#recovery').hide(); + $('#code').attr('required', false); + $('#recovery-submit').attr('disabled', true); + $(this).text('Verify using a recovery code'); + } + }); + +}); +[% END %] + +[% css = BLOCK %] + + #duo_container { + background: #fff url(skins/standard/throbber.gif) 10px 10px no-repeat; + width: 620px; + height: 330px; + border: 1px solid #000; + } + +[% END %] + +[% + INCLUDE global/header.html.tmpl + title = "Account Verification" + javascript_urls = ['js/duo-min.js'] + javascript = js + style = css +%] + +
+ [% reason FILTER html %] requires verification.
+ [% UNLESS is_enrolment %]
+ Verify using a recovery code.
+ [% END %]
+