[IMP] auth_totp: add 2FA Trusted Devices
+ Added the 'Trusted Devices' feature
+ Added 'Remember this Device' checkbox on /web/login/totp
+ Added trusted device's OS / browser on Profile > Account Security
Added '2FA Trusted Devices' feature to allow users to remember their
device to bypass the 2FA for the next connections. The trusted devices
are displayed in a 'Trusted Devices' One2Many under the 'Developer API
Keys'. It is possible to revoke all the trusted devices at once with a
special button. It is also possible to revoke one at a time on the
desired one.
Add tour
Remove the "new Promise()" that makes the logout step fail (and seems
unnecessary).
closes odoo/odoo#69608
Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
Showing
- addons/auth_totp/controllers/home.py 34 additions, 3 deletionsaddons/auth_totp/controllers/home.py
- addons/auth_totp/i18n/auth_totp.pot 59 additions, 2 deletionsaddons/auth_totp/i18n/auth_totp.pot
- addons/auth_totp/models/res_users.py 20 additions, 1 deletionaddons/auth_totp/models/res_users.py
- addons/auth_totp/static/tests/totp_flow.js 64 additions, 0 deletionsaddons/auth_totp/static/tests/totp_flow.js
- addons/auth_totp/tests/test_totp.py 6 additions, 3 deletionsaddons/auth_totp/tests/test_totp.py
- addons/auth_totp/views/templates.xml 5 additions, 1 deletionaddons/auth_totp/views/templates.xml
- addons/auth_totp/views/user_preferences.xml 25 additions, 0 deletionsaddons/auth_totp/views/user_preferences.xml
- addons/auth_totp_portal/i18n/auth_totp_portal.pot 17 additions, 2 deletionsaddons/auth_totp_portal/i18n/auth_totp_portal.pot
- addons/auth_totp_portal/static/src/js/totp_frontend.js 38 additions, 0 deletionsaddons/auth_totp_portal/static/src/js/totp_frontend.js
- addons/auth_totp_portal/views/templates.xml 26 additions, 0 deletionsaddons/auth_totp_portal/views/templates.xml
- addons/web/static/src/js/core/misc.js 0 additions, 1 deletionaddons/web/static/src/js/core/misc.js
- odoo/addons/base/models/res_users.py 8 additions, 0 deletionsodoo/addons/base/models/res_users.py
Loading
Please register or sign in to comment