steps to reproduce:
- install the module "2FA by mail" (auth_totp_mail_enforce)
- open settings (this should bring the settings of the settings app)
- activate "Two-factor authentification enforcing policy" to "Employees only"
(or "All users") and save
- try to (re)connect with a user (demo/demo or admin/admin)
before this commit:
- internal server error
after this commit:
- error is passed to the user, allowing him (or the admin) to
debug without contacting odoo support
opw-3624816
closesodoo/odoo#147196
X-original-commit: a449210cc18f64460096cb43b3633d4861120d0e
Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>