Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Extra Tools
  3. Email OTP Two-Factor Authentication (2FA) | Secure Login & Signup v 19.0
  4. Sales Conditions FAQ

Email OTP Two-Factor Authentication (2FA) | Secure Login & Signup

by ADream Innovations https://adreaminnovations.odoo.com
Odoo
v 19.0 Third Party 9
Download for v 19.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 17.0 18.0 19.0
You bought this module and need support? Click here!
Versions 17.0 18.0 19.0
  • Description
  • Manifest
Odoo App Store Security Essential

Email OTP Two-Factor Authentication (2FA)

Protect user logins and signups with cryptographically secure, time-limited One-Time Passwords (OTP) sent directly to their email, preventing unauthorized access and brute-force attacks.

Two-Factor Authentication (2FA) Email OTP Login & Signup Brute-Force & Lockout Protection HMAC & Fernet Encrypted Security

Secure your Odoo instance from unauthorized access and credential leaks

Traditional login methods relying solely on passwords are highly vulnerable to credential stuffing, brute-force attacks, and password leaks. If a user's password is compromised, attackers can easily gain access to sensitive company data, customer records, and financial transactions.

The **Email OTP Two-Factor Authentication** module adds an essential layer of security to your Odoo environment. Upon entering correct credentials, the module intercepts the login process and generates a cryptographically secure 6-digit OTP code, sending it to the user's verified email.

With this multi-factor authentication (MFA) workflow, even if an attacker acquires a password, they cannot gain entry without access to the user's email inbox, significantly mitigating the risk of data breaches.

Multi-Step Verification Workflows

  • Secure Portal Signups: Verify customer and portal user identities at registration, ensuring only active, valid emails can create accounts.
  • Staff Login Safeguard: Enforce two-factor verification for internal company users to protect corporate administrative dashboards.
  • Brute-Force Lockout: Automatically lock verification records after 5 failed attempts, thwarting automated login cracks.
  • Automated Data Cleanups: Uses daily background cron jobs to delete processed or expired OTP codes, keeping your database clean.

Key Module Capabilities

Enforce robust, seamless multi-factor authentication with native Odoo-styled frontend interfaces.

01

Two-Factor Login Protection

Intercepts standard logins to request verification via a 6-digit email OTP after correct password validation.

02

Verified User Registrations

Enforces email validation on the signup form, preventing spam and verifying email ownership during account creation.

03

HMAC & Fernet Cryptography

Protects sensitive login credentials between login steps using HMAC signatures and Fernet symmetric encryption.

04

Brute-Force Lockout Safety

Defends against code guessing by locking OTP verification records after 5 failed verification attempts.

05

2-Minute Expiration Window

Limits the vulnerability window by expiring generated OTP codes after 2 minutes of inactivity.

06

Audit Logs for Administrators

Enables compliance auditing with a dedicated backend view tracking OTP emails, states, and login attempts.

Behind-The-Scenes Cryptographic Logic

The module runs safe validation steps to make sure all login attempts match robust security standards:

  • Secure Payload Encapsulation: Encrypts plaintext passwords during the two-step authentication using Fernet URL-safe symmetric encryption.
  • HMAC Signature Verification: Signs temporary login tokens with the database secret via SHA-256 to prevent client-side tampering or injection.
  • Cryptographic Random Generation: Generates 6-digit numeric OTP codes utilizing Python's secure secrets library instead of standard pseudorandom generators.

Centralized Security Audits

Administrators can monitor and audit authentication events directly from Odoo settings:

  • OTP Audit Log: A dedicated menu under Users allows administrators to monitor email addresses, verification states (Verified, Locked, Expired), and attempt counts.
  • Masked Email Display: Obfuscates recipient email addresses on the verification screen to protect user privacy (e.g., a***z@domain.com).
  • Automatic Database Cleanup: Runs a scheduled daily cron job to prune old verification history and clean expired database records.

Interface Preview

2FA Login Verification Form

2FA Login Verification

Secure login form requesting the 6-digit OTP code sent to the masked email address, with quick links to resend the code.

Email Verification during Signup

Verified Registration

Validates the user's email ownership directly on signup by requiring a one-time verification code before account setup.

Admin OTP Verification Records List View

Admin Audit Logging

A dedicated backend list view displaying all verification records, states, creation timestamps, and failure attempts.

Quick Setup Guide

1. Install

Add the OTP Login module to your custom Odoo addons folder, update the app list, and click install.

2. Outgoing Mail

Ensure Odoo's Outgoing Mail Servers are properly configured to send OTP emails to your users without delay.

3. Enforce 2FA

The module automatically applies 2FA protection to all standard login and signup attempts instantly.

4. Audit Settings

Navigate to Settings > Users & Companies > OTP Verification to view active codes, verify logs, or run cleanups.

Need custom Odoo security configuration or development support?

ADream Innovations provides premium consulting, engineering, and support services for Odoo environments. We help organizations optimize their operations through custom Odoo Development, targeted Odoo Customization, and end-to-end Odoo Implementation setups. Our team integrates systems via custom API Integrations and automates routine workflows.

If you need an expert ERP Consulting partner to audit your security policies or require reliable, Long-Term Odoo Support, contact us today to discuss how we can assist.

Request a Consultation Visit Our Website

Developed by ADream Innovations under standard LGPL-3 licensing. For software updates, bug reports, or consulting inquiries, contact us.

Email: info@adream-innovation.odoo.com

Website: https://adreaminnovations.odoo.com

Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 791
Technical Name ad_otp_login
LicenseLGPL-3
Websitehttps://adreaminnovations.odoo.com

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with