35 lines
1.5 KiB
XML
35 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Form View for MFA Authentication -->
|
|
<record id="view_unifi_mfa_form" model="ir.ui.view">
|
|
<field name="name">unifi.mfa.form</field>
|
|
<field name="model">unifi.mfa</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Authentification à deux facteurs">
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<h1>Authentification à deux facteurs</h1>
|
|
</div>
|
|
<group>
|
|
<field name="site_id" readonly="1"/>
|
|
<field name="auth_type" readonly="1"/>
|
|
<field name="mfa_token" invisible="1"/>
|
|
<field name="expiry" invisible="1"/>
|
|
</group>
|
|
<group>
|
|
<div class="alert alert-info" role="alert">
|
|
<p>Veuillez entrer le code à 6 chiffres généré par votre application d'authentification.</p>
|
|
</div>
|
|
<field name="mfa_code" placeholder="123456" required="1"/>
|
|
</group>
|
|
</sheet>
|
|
<footer>
|
|
<button string="Valider" name="validate_mfa" type="object" class="btn-primary"/>
|
|
<button string="Annuler" class="btn-secondary" special="cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Action moved to unifi_actions.xml -->
|
|
</odoo>
|