You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2016-2017 LasLabs Inc.
  4. License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
  5. -->
  6. <odoo>
  7. <template id="mfa_login" name="MFA Login Page">
  8. <t t-call="web.login_layout">
  9. <form class="oe_login_form" role="form" t-attf-action="/auth_totp/login" method="post" onsubmit="this.action = this.action + location.hash">
  10. <input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
  11. <input type="hidden" name="redirect" t-att-value="redirect"/>
  12. <input type="hidden" name="mfa_login_token" t-att-value="mfa_login_token"/>
  13. <div class="form-group field-login">
  14. <label for="confirmation_code" class="control-label">MFA Confirmation Code</label>
  15. <input type="text" name="confirmation_code" id="confirmation_code" class="form-control" required="required" autofocus="autofocus" autocapitalize="off"/>
  16. </div>
  17. <div class="form-group checkbox">
  18. <label>
  19. <input type="checkbox" name="remember_device" id="remember_device"/>
  20. <span>Remember this device</span>
  21. </label>
  22. </div>
  23. <p class="alert alert-danger" t-if="error">
  24. <t t-esc="error"/>
  25. </p>
  26. <div class="clearfix oe_login_buttons">
  27. <button type="submit" class="btn btn-primary">Confirm</button>
  28. </div>
  29. </form>
  30. </t>
  31. </template>
  32. </odoo>