Odoo 19 app

OTP Login

OTP login for Odoo - log in, sign up and reset the password with a one-time code by email or SMS

What it does

Users ask for a code instead of typing a password, new customers verify their email or mobile number before the account is created, and a forgotten password is replaced with a code. Built on Odoo's own login, signup and SMS.

OTP Login adds a Log in with a one-time code button to the Odoo login page. The user types their email, username or mobile number, receives a code by email or SMS and logs in with it. The password still works next to it, and users who use an authenticator app are still asked for it after the code.

On the signup page the email address or the mobile number must be verified with a code before Odoo creates the account, and one mobile number can belong to only one account. Forgotten passwords can be reset with a code instead of a link. A code can also be asked after the password, as a two-step login, for portal users, internal users, everybody or chosen users.

Codes are numeric or alphanumeric, expire after the minutes you set and are stored hashed. Wrong codes lock the login for a while, a new code can be asked only after a cooldown, and the number of codes per login and per IP address is limited. Every request is listed in a code log with its purpose, channel, masked destination, IP address and result, and old lines are removed automatically.