From a9061fb9d80fd7f67f0781fe31536f7ec05e7a7d Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Thu, 28 Jul 2022 10:31:35 +0200
Subject: [PATCH] Bug 30588: Add missing include file

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
---
 .../prog/en/includes/auth-two-factor.inc      | 32 +++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/auth-two-factor.inc

diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-two-factor.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/auth-two-factor.inc
new file mode 100644
index 0000000000..24e74141da
--- /dev/null
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/auth-two-factor.inc
@@ -0,0 +1,32 @@
+[% BLOCK registration_form %]
+    <div id="registration-form" style="display: none;">
+        <div class="dialog message">
+            <p>We recommend cloud-based mobile authenticator apps such as Authy, Duo Mobile, and LastPass. They can restore access if you lose your hardware device.</p>
+            <p>Can't scan the code?</p>
+            <p>To add the entry manually, provide the following details to the application on your phone.</p>
+            <p>Account: <span id="issuer">[% issuer | html %]</span></p>
+            <p>Key: <span id="key_id">"[% key_id | html %]</span></p>
+            <p>Time based: Yes</p>
+        </div>
+
+        <div id="errors" class="dialog error" style="display: none;"></div>
+
+        <fieldset class="rows">
+            <input type="hidden" id="secret32" name="secret32" value="[% secret32 | html %]" />
+            <ol>
+                <li>
+                    <label for="qr_code">QR code: </label>
+                    <img id="qr_code" src="" />
+                </li>
+                <li>
+                    <label for="pin_code">PIN code: </label>
+                    <input type="text" id="pin_code" name="pin_code" value="" />
+                </li>
+            </ol>
+        </fieldset>
+        <fieldset class="action">
+            <input id="register-2FA" type="submit" value="Register with two-factor app" />
+            <a class="cancel" href="/cgi-bin/koha/members/two_factor_auth.pl">Cancel</a>
+        </fieldset>
+    </div>
+[% END %]
-- 
2.30.2