Frontend Customer Login

Once your customer is successfully registered to your Magento 2 store, they can quickly log in either using OTP or a password.

Login with OTP

Whenever a customer chooses Login with OTP option, they will be asked to enter the mobile number for verification using OTP.

If the mobile number digits do not match the country validation configured by the admin in the backend, it will show an error message.

Once the user enters the correct mobile number and clicks on the Send OTP button, they will receive an SMS as well as an email with OTP for login.

SMS on Mobile Number with OTP for Login

Login OTP Email

After entering the OTP, the user needs to click on Verify & Login.

In case the OTP verification time is out, the user gets the option to Resend OTP.

Once the OTP is verified, the login is successfully done. The old customer is redirected to the Update Mobile Number section on their My Account page. The Customer Login through OTP is protected by reCAPTCHA to avoid spam sign-in.

Login with Password

Whenever a customer chooses the Login with Password option, they will be asked to enter their email address/mobile number and password.

Email & Password

Mobile Number & Password

Once the login details are entered correctly, the login is successfully done. The old customer is redirected to the Update Mobile Number section on their My Account page.

After successful login, the customer will be notified via email.

Last updated