Includes: - Odoo 19 framework (odoo/) - 27 custom EnCoach addons (new_project/custom_addons/) - encoach_core, encoach_api, encoach_lms_api, encoach_adaptive_api - encoach_exam, encoach_taxonomy, encoach_adaptive, encoach_assignment - encoach_ai, encoach_ai_grading, encoach_ai_generation, encoach_ai_media - encoach_courseware, encoach_communication, encoach_subscription - encoach_notification, encoach_approval, encoach_branding - encoach_classroom, encoach_registration, encoach_stats - encoach_faq, encoach_ticket, encoach_training, encoach_resources - encoach_adaptive_ai, encoach_sis - 21 OpenEduCat Enterprise modules (new_project/enterprise-19/) - 14 OpenEduCat Community modules (new_project/openeducat_erp-19.0/) - Configuration: odoo.conf, requirements.txt, scripts - 200+ REST API endpoints with JWT authentication - SRS and test documentation Made-with: Cursor
51 lines
2.5 KiB
XML
51 lines
2.5 KiB
XML
<odoo>
|
|
|
|
<template id="auth_totp_form" name="Two-Factor Authentication">
|
|
<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="">
|
|
<div class="mb-2 mt-2 text-muted">
|
|
To login, enter below the six-digit authentication code provided by your Authenticator app.
|
|
<br/>
|
|
<a href="https://www.odoo.com/documentation/latest/applications/general/auth/2fa.html"
|
|
title="Learn More" target="_blank">Learn More</a>
|
|
</div>
|
|
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
|
|
<input type="hidden" name="redirect" t-att-value="redirect"/>
|
|
<div class="mb-3">
|
|
<label class="fw-bold" for="totp_token">Authentication Code</label>
|
|
<input id="totp_token" name="totp_token" class="form-control mb-2"
|
|
autocomplete="off" inputmode="numeric" autofocus="autofocus" required="required" placeholder="e.g. 123456"/>
|
|
</div>
|
|
<div class="text-center py-2 border-top">
|
|
<p class="alert alert-danger" t-if="error" role="alert">
|
|
<t t-esc="error"/>
|
|
</p>
|
|
<div class="mb-2 mt-2 text-muted">
|
|
<input type="checkbox" name="remember" id="switch-remember" value="1"/>
|
|
<label for="switch-remember">Don't ask again on this device</label>
|
|
</div>
|
|
<div t-attf-class="clearfix oe_login_buttons text-center d-grid mb-1">
|
|
<button type="submit" class="btn btn-primary">
|
|
Log in
|
|
</button>
|
|
</div>
|
|
|
|
</div>
|
|
</form>
|
|
|
|
<form method="POST" action="/web/session/logout">
|
|
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
|
|
<div class="w-100 text-center">
|
|
<button type="submit" class="btn btn-link btn-sm mb-2">
|
|
Cancel
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
</odoo>
|