Repository
odoo/odoo · module folder
Module version
0.1.0
Category
Extra Tools
Folder size
0.52 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
None
Last tracking update
2026-08-15 22:24:28
Authors
Maintainers
None
Committers
Xavier Morel, Odoo Translation Bot, Denis Ledoux, qsm-odoo, Odoo Online, Tiffany Chang (tic), Louis Wicket (wil), nda, Dylan Kiss (dyki), Louis (wil), thle-odoo, Mathieu Coutant, Krzysztof Magusiak (krma)
Odoo dependencies
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
l10n_fr_pdp
Description
2FA by mail
===============
Two-Factor authentication by sending a code to the user email inbox
when the 2FA using an authenticator app is not configured.
To enforce users to use a two-factor authentication by default,
and encourage users to configure their 2FA using an authenticator app.
    

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
auth_totp_mail_form auth_totp_mail_form ir.ui.view qweb Inherits auth_totp.auth_totp_form
res_config_settings_view_form res.config.settings.view.form.inherit.auth_totp_mail_enforce res.config.settings form Inherits base_setup.res_config_settings_view_form
HTTP endpoints (1)
Route(s)HandlerAuthTypeMethodsFlags
(inherited route override) Home.web_totp inherited http ALL
Models touched (3)

New fields (4)
  • ip Char
    readonly=True
  • limit_type Selection
    readonly=True args: [('send_email', 'Send Email'), ('code_check', 'Code Checking')]
  • scope Char
    readonly=True
  • user_id Many2one → res.users
    readonly=True required=True args: 'res.users'
Public methods (1)
  • init(self)

New fields (2)
  • auth_totp_enforce Boolean
    string='Enforce two-factor authentication'
  • auth_totp_policy Selection
    config_parameter='auth_totp.policy' string='Two-factor authentication enforcing policy' args: [('employee_required', 'Employees only'), ('all_required', 'All users')]
Public methods (1)
  • get_values(self)
    @api.model

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…