Files
odoo_source/addons/auth_totp/views/templates.xml
T
Julien MougenotandSimon Genin 03641610c2 [REF] *: convert all modules to new asset system
Conversion of all modules to the new manifest assets declaration.

Part of task: 2352566

Co-authored-by: Julien Mougenot <jum@odoo.com>
Co-authored-by: Simon Genin <ges@odoo.com>
2021-03-31 13:57:18 +02:00

41 lines
1.9 KiB
XML

<odoo>
<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>