OTP for Reset Password lets a WooCommerce customer who has forgotten their password reset it with a one-time password (OTP) sent by SMS. The customer starts from the “Lost your password?” link on the account page, enters their username or email, and receives the OTP on the mobile number saved to their account. After they enter the OTP, they can set a new password. If the account has no mobile number, WooCommerce sends the usual password reset email instead.
This feature is part of the SMS Alert WordPress plugin. New to it? See the WordPress SMS plugin setup guide.
Before you start
- Install and activate the plugin and connect your SMS Alert account.
- Keep SMS credits in your account. Each OTP, including a resend, uses credits.
- On India routes, the OTP message must match an approved DLT template.
- Customers need a mobile number saved on their account to receive an OTP.
How to enable OTP for reset password
- In the WordPress dashboard, open the SMS Alert menu under WooCommerce.
- Go to the OTP Settings tab.
- Enable OTP For Reset Password.
- Click Save Changes.
The OTP uses the same OTP template as the plugin’s other OTP features, so you can change its length, validity and retries the same way. See the OTP template settings
What customers do
- Go to the WooCommerce store’s My Account page.
- Under the login form, click Lost your password?
- Enter the username or email address used at registration and click Reset Password.
- An OTP is sent by SMS to the mobile number linked to the account.
- Enter the OTP and click Validate OTP.
- In the Change Password window, enter a new password and click Change password.
- The password is reset.
To test, create a test customer with your own mobile number, log out, and follow these steps.
What if the account has no mobile number?
The customer does not receive an OTP. WooCommerce sends a password reset email to the email address on the account instead. To make OTP reset available to everyone, ask customers to add a mobile number to their account, or enable OTP verification on signup so new accounts always have a verified number.
Troubleshooting
Problem | What to check |
|---|---|
Customers get an email, not an OTP | The account has no saved mobile number, or OTP For Reset Password is not enabled and saved. |
No OTP arrives | Check your SMS credits, the number saved on the account, the sender ID, DLT template approval on India routes and the delivery report in your SMS Alert account. See Unable to Send OTP from WordPress Plugin. |
The message is rejected with a template error | The OTP text does not match your approved DLT template. See Template Mismatch Error. |
The OTP is rejected as expired | OTPs are valid for a limited time. Ask the customer to request a new one. |
The customer cannot find where to reset | They must use Lost your password? under the login form on the My Account page. |
Frequently asked questions
What does OTP for Reset Password do?
It lets a WooCommerce customer reset a forgotten password by verifying an OTP sent to their mobile number, instead of using an email link.
Where do I enable it?
SMS Alert under WooCommerce, then OTP Settings, then OTP For Reset Password.
Where is the OTP sent?
To the mobile number saved on the customer’s account, not to a number typed in at reset time.
What if the user has no mobile number on their account?
A password reset email is sent to the email address on the account instead of an OTP.
What does the customer enter first, a username or an email?
Either. They enter the username or the email address used at registration.
Does it use SMS credits?
Yes. Each OTP SMS, including a resend, uses credits.
Can I change the OTP length or validity?
Yes, through the OTP template tag. See the WooCommerce OTP verification guide
Does it replace the email reset completely?
Yes. With OTP For Reset Password enabled, customers reset their password with an OTP instead of the email link. The only exception is an account with no mobile number, which receives the standard reset email because no OTP can be sent.
