> For the complete documentation index, see [llms.txt](https://docs.magecomp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.magecomp.com/magento-2-mobile-otp-login-extension-pro/frontend-forgot-password.md).

# Frontend Forgot Password

Whenever a customer clicks on the forgot password option at the time of login, the customer can reset the password either using mobile or email.

## Reset Password using Mobile

Whenever a customer chooses the mobile option to update the password, they will be asked to enter the mobile number for OTP.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FUU3UWYNj7FlAy9qDy236%2Fimage.png?alt=media&amp;token=bb70f2ae-66b2-42c9-a1d6-fa8c2a5e4e77" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2F8pNy1LL3oTswcjLYdQK9%2Fimage.png?alt=media&amp;token=0d5bd2b1-7be2-4853-804f-162f7e030d00" alt=""><figcaption></figcaption></figure>

Once the user enters the correct mobile number and clicks on the Send OTP button, they will receive an SMS with OTP for updating the password.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FrppcClutc27letoigbYG%2Fimage.png?alt=media&amp;token=bfd7ef8b-6bda-4b4f-a4cf-1d43de97d90d" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FHEPYeuyksmuTIlPviA3T%2Fimage.png?alt=media&amp;token=2e2161ed-eb42-4b87-90af-e7b63bef725a" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FLLRv3qIknFibfHpshG8K%2Fimage.png?alt=media&amp;token=19d9198c-485c-4d09-b6ef-a5bd9e232614" alt=""><figcaption></figcaption></figure>

Once the OTP is verified successfully, the user is redirected to enter the new password. The Forgot Password through OTP is protected by reCAPTCHA.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2F3UjRpHQnAqUWSYTcO87C%2Fimage.png?alt=media&amp;token=22a1a66a-f4dd-4c83-887c-34783638ecb8" alt=""><figcaption></figcaption></figure>

Clicking on the Continue button will successfully update the password.

## Reset Password using Email

Whenever a customer chooses the email option to update the password, they will be asked to enter their email ID.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2Fs90vW2s4f4nRXCxsK99h%2Fimage.png?alt=media&amp;token=962647d8-9b45-4a44-82e0-3c2d6ffa6a73" alt=""><figcaption></figcaption></figure>

After entering the email, click on the Send Email button. The customer will receive an email sent message.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FYswY7txePy8HaULRnOgw%2Fimage.png?alt=media&amp;token=ca66a5a5-e7bf-4413-8edb-c3dea3ffff3b" alt=""><figcaption></figcaption></figure>

When the customer clicks on the Send Email button, an email will be sent to the customer with a reset password link. Check your email.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FENH6q1OHQpzY3un1zDfQ%2Fimage.png?alt=media&amp;token=49df8c67-7adf-4cf6-9db3-1f973f1e2954" alt=""><figcaption></figcaption></figure>

Clicking on Set a New Password, the customers can update their password.
