summaryrefslogtreecommitdiffstats
path: root/template/en/default/mfa
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/mfa')
-rw-r--r--template/en/default/mfa/recovery.html.tmpl35
-rw-r--r--template/en/default/mfa/totp/verify.html.tmpl2
2 files changed, 36 insertions, 1 deletions
diff --git a/template/en/default/mfa/recovery.html.tmpl b/template/en/default/mfa/recovery.html.tmpl
new file mode 100644
index 000000000..b76d53ae9
--- /dev/null
+++ b/template/en/default/mfa/recovery.html.tmpl
@@ -0,0 +1,35 @@
+[%# 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.
+ #%]
+
+[% css = BLOCK %]
+
+#codes {
+ font-size: 100%;
+ font-family: monospace;
+}
+
+[% END %]
+
+[%
+ PROCESS global/header.html.tmpl
+ style_urls = ['skins/standard/admin.css']
+ no_body = 1
+ style = css
+%]
+<body id="mfa-recovery-embedded">
+ [% IF codes.size %]
+ <div id="codes">
+ [% FOREACH code IN codes %]
+ [% code FILTER html %]<br>
+ [% END %]
+ </div>
+ [% ELSE %]
+ <i>Codes already generated</i>
+ [% END %]
+</body>
+</html>
diff --git a/template/en/default/mfa/totp/verify.html.tmpl b/template/en/default/mfa/totp/verify.html.tmpl
index e61ee3866..ad75dc6bc 100644
--- a/template/en/default/mfa/totp/verify.html.tmpl
+++ b/template/en/default/mfa/totp/verify.html.tmpl
@@ -22,7 +22,7 @@
<input type="hidden" name="[% field FILTER html %]" value="[% postback.fields.item(field) FILTER html %]">
[% END %]
<input type="text" name="code" id="code"
- placeholder="123456" maxlength="6" pattern="\d{6}" size="10"
+ placeholder="123456" maxlength="9" pattern="\d{6,9}" size="10"
autocomplete="off" required autofocus><br>
<br>
<input type="submit" value="Submit">