2FA by mail

auth_totp_mail_enforce
REPOSITORY
REPOSITORYodoo/odoo
GIT
GIThttps://github.com/odoo/odoo.git
GIT FOLDER
GIT FOLDERhttps://github.com/odoo/odoo/tree/18.0/auth_totp_mail_enforce
VERSION
VERSION 0.1.0
CATEGORY
CATEGORYExtra Tools
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORS
MAINTAINERS
MAINTAINERS
COMMITTERS
COMMITTERSOdoo Translation Bot, Denis Ledoux, Xavier Morel, qsm-odoo, Odoo Online, Tiffany Chang (tic), Louis Wicket (wil), nda, Dylan Kiss (dyki), Louis (wil), thle-odoo, Mathieu Coutant, Krzysztof Magusiak (krma)
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 01:25:53
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - auth_totp
    - web
    - base
    - mail
    - base_setup
    - bus
    - web_tour
    - html_editor
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 xpath Inherits base_setup.res_config_settings_view_form
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.

REPOSITORY
REPOSITORYodoo/odoo
GIT
GIThttps://github.com/odoo/odoo.git
GIT FOLDER
GIT FOLDERhttps://github.com/odoo/odoo/tree/17.0/auth_totp_mail_enforce
VERSION
VERSION 0.1.0
CATEGORY
CATEGORYExtra Tools
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORS
MAINTAINERS
MAINTAINERS
COMMITTERS
COMMITTERSOdoo Translation Bot, Martin Trigaux, Thibault Delavallée, Xavier Morel, qsm-odoo, Odoo Online, Jorge Pinna Puissant, Julien Castiaux, Nasreddin Boulif (bon), Tiffany Chang (tic), Gorash, Antoine Vandevenne (anv), nda, Antoine (ande), Chong Wang (cwg), Louis (wil), thle-odoo, Mathieu Coutant
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 01:02:04
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - auth_totp
    - web
    - base
    - mail
    - base_setup
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 xpath Inherits base_setup.res_config_settings_view_form
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.

REPOSITORY
REPOSITORYodoo/odoo
GIT
GIThttps://github.com/odoo/odoo.git
GIT FOLDER
GIT FOLDERhttps://github.com/odoo/odoo/tree/16.0/auth_totp_mail_enforce
VERSION
VERSION 0.1.0
CATEGORY
CATEGORYExtra Tools
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORS
MAINTAINERS
MAINTAINERS
COMMITTERS
COMMITTERSOdoo Translation Bot, Martin Trigaux, Thibault Delavallée, Denis Ledoux, Julien Castiaux, Victor Feyens, Nasreddin Boulif (bon), Florian Charlier, Antoine Vandevenne (anv), nda, Antoine (ande), Chong Wang (cwg), thle-odoo, Mathieu Coutant
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:46
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - auth_totp
    - web
    - base
    - mail
    - base_setup
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 xpath Inherits base_setup.res_config_settings_view_form
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.

REPOSITORY
REPOSITORYodoo/odoo
GIT
GIThttps://github.com/odoo/odoo.git
GIT FOLDER
GIT FOLDERhttps://github.com/odoo/odoo/tree/15.0/auth_totp_mail_enforce
VERSION
VERSION 0.1.0
CATEGORY
CATEGORYExtra Tools
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORS
MAINTAINERS
MAINTAINERS
COMMITTERS
COMMITTERSOdoo Translation Bot, Denis Ledoux, Nasreddin Boulif (bon), Tiffany Chang (tic), nda, Antoine (ande), Chong Wang (cwg)
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:25:26
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - auth_totp
    - web
    - base
    - mail
    - base_setup
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 xpath Inherits base.res_config_settings_view_form
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.