OTP Login - SMS Login, Email OTP, OTP Signup, Passwordless Login, Login with OTP
by Modvanta https://modvantaapps.tech/odoo-apps/otp-login/$ 13.96
In-App Purchases
OTP login for Odoo - log in, sign up and reset the password with a one-time code by email or SMS
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.
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
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.
Who it is for
Shops and portals Customers log in with a code by email or SMS and never need to remember a password; fake signups are stopped by the code. | Mobile-first markets Customers log in with their mobile number and receive the code by SMS through Odoo SMS or your SMS gateway. | Administrators Turn each page on or off, choose who must enter a code after the password, set the limits and read the log of every code. |
What Odoo already does, and what this adds
| Need | Odoo 19 core | With this module |
| Two-factor authentication | Authenticator app (TOTP) and passkeys | Kept as they are. Adds a code by email or SMS, as a login method or as a step after the password |
| Signup | Signup with email and password | The email or mobile number is verified with a code first; one account per mobile number |
| Password reset | A reset link by email | A code by email or SMS, entered on the reset page, next to the link |
| Login with a mobile number | No | Yes, matched on the contact's phone |
| Code log and limits | No | Expiry, lockout, cooldown, limits per login and IP, audit log |
Key features
| 1Log in with a one-time code A button under the password asks for a code. The user types an email, username or mobile number; the code goes to the masked email or phone shown on the page, with a countdown before a new code can be asked. |
![]() The login page with the code login |
| 2Code sent, enter it to log in The password field is replaced by the code field. Use my password instead switches back. |
![]() The code was sent to the masked address |
| 3The code by email A short email with the code and its validity. The template can be edited in Odoo. |
![]() The email with the code |
| 4Code after the password Two-step login without an authenticator app: after the password Odoo sends a code and asks for it. |
![]() Two-step login page |
| 5Verify the email at signup Send code on the signup page; the account is created only with the right code for that address. |
![]() Signup with the verification code |
| 6Reset the password with a code Type the email or mobile number, enter the code and the new password, then log in. |
![]() Password reset with a code |
| 7Settings Turn the login, signup and reset codes on or off, choose email, SMS, by what the user types or the user's choice, and set length, validity, lockout, cooldown and limits. |
![]() OTP Login settings |
| 8Code log Every request with its purpose, channel, masked destination, IP address and status: verified, wrong code, locked, refused or unknown account. |
![]() The one-time code log |
| 9Per user Ask a code after the password for one user only, clear a lockout, and open the log of that user. |
![]() One-time codes tab on the user |
How it works
| 1 | Install The login page shows Log in with a one-time code right away, by email. |
| 2 | Choose Settings, OTP Login: channel, signup and reset codes, two-step login, limits. |
| 3 | For SMS Use Odoo SMS (IAP credits) or any SMS gateway module that plugs into Odoo SMS. |
| 4 | Watch Users, One-Time Code Log shows every code that was asked for. |
Settings
Login with a one-time code - on or off
Send codes by - email, SMS, by what the user types (email or mobile number) or the user's choice
Log in with a mobile number - match the typed number to the contact's phone
Code after password - nobody, portal and website users, internal users or everybody; each user can override it
Code at signup - off, verify the email or verify the mobile number; one account per mobile number
Password reset with a code - on or off
Code - digits or letters and digits, 4 to 10 characters, validity in minutes
Limits - wrong codes before a lockout and its length, seconds before a new code, codes per login and per IP address per hour, days the log is kept, SMS text
Frequently asked questions
Do I need an SMS provider?
Only for SMS codes. They go through Odoo SMS, so Odoo IAP credits or any SMS gateway module that plugs into Odoo SMS works. Email codes use your normal outgoing mail server.
Does it replace passwords?
No. Users can still log in with their password; the code is another way in. You can also ask for a code after the password.
What about the authenticator app?
Users who turned on Odoo's authenticator-app two-factor authentication are still asked for it, after the password or after the code.
Can someone find out which emails have an account?
No. An unknown email or number gets the same answer as a known one, but no code is sent.
Are codes stored?
Only a hash of each code is stored, the email copy is deleted after sending, and the log keeps the masked destination.
Does it stop bots at signup?
The account is created only after the email or the mobile number is verified with a code, and codes are limited per login and per IP address.
Compatibility
Odoo 19 - Community and Enterprise
Depends on - Odoo signup (auth_signup), SMS and Discuss
Pages - Odoo's own login, signup and reset password pages, so the code login appears wherever they are used
Support
Questions before you buy, or a feature you need? Write to us and we answer by email.
AUTHOR Modvanta | INCLUDED Email OTP, SMS login, signup and reset codes, code log |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 1043 |
| Technical Name |
mdv_otp_login |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/otp-login/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.









Please log in to comment on this module