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.

33 lines
1.5 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. <div class="form-group field-login">
  13. <label for="confirmation_code" class="control-label">MFA Confirmation Code</label>
  14. <input type="text" name="confirmation_code" id="confirmation_code" class="form-control" required="required" autofocus="autofocus" autocapitalize="off"/>
  15. </div>
  16. <div class="form-group checkbox">
  17. <label>
  18. <input type="checkbox" name="remember_device" id="remember_device"/>
  19. <span>Remember this device</span>
  20. </label>
  21. </div>
  22. <p class="alert alert-danger" t-if="error">
  23. <t t-esc="error"/>
  24. </p>
  25. <div class="clearfix oe_login_buttons">
  26. <button type="submit" class="btn btn-primary">Confirm</button>
  27. </div>
  28. </form>
  29. </t>
  30. </template>
  31. </odoo>