diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/auth_totp/views/templates.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/auth_totp/views/templates.xml')
| -rw-r--r-- | addons/auth_totp/views/templates.xml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/addons/auth_totp/views/templates.xml b/addons/auth_totp/views/templates.xml new file mode 100644 index 00000000..100dbbc4 --- /dev/null +++ b/addons/auth_totp/views/templates.xml @@ -0,0 +1,45 @@ +<odoo> + <template id="assets_tests" inherit_id="web.assets_tests"> + <xpath expr="." position="inside"> + <script type="text/javascript" src="/auth_totp/static/tests/totp_flow.js"></script> + </xpath> + </template> + <template id="auth_totp_form"> + <t t-call="web.login_layout"> + <t t-set="disable_footer">1</t> + <div class="oe_login_form"> + <h5 class="card-title">Two-factor Authentication</h5> + <form method="POST" action="" class=""> + <input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/> + <input type="hidden" name="redirect" t-att-value="redirect"/> + <div class="form-group"> + <label for="totp_token">Authentication Code (6 digits)</label> + <input id="totp_token" name="totp_token" class="form-control mb-2" + autofocus="autofocus" required="required"/> + </div> + <p class="alert alert-danger" t-if="error" role="alert"> + <t t-esc="error"/> + </p> + <div t-attf-class="clearfix oe_login_buttons text-center mb-1"> + <button type="submit" class="btn btn-primary btn-block"> + Verify + </button> + </div> + <div class="small mb-2 mt-2 text-muted"> + <i class="fa fa-2x fa-mobile pull-left"/> + Open the two-factor authentication app on your + device to obtain a code and verify your identity + </div> + </form> + </div> + <div class="text-center pb-2 border-top"> + <form method="POST" action="/web/session/logout" class="form-inline"> + <input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/> + <button type="submit" class="btn btn-link btn-sm mb-2"> + Cancel + </button> + </form> + </div> + </t> + </template> +</odoo> |
