# 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="/files/G6pxKebtUT3fSmogmZwl" 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="/files/HNcLsvpyRN0i2BZobrLh" 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="/files/nTG3IP9TTB3qCpjCqnJV" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/Q9FeLSkHxhs9hG90O9S6" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/pZwMWPV0UgplK6SFARYK" 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="/files/56eGP7CCc9371r4flMkL" 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="/files/XEwvG4DnbpKnb0iiWNsN" 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="/files/GbAECm6zXcimPul98s18" 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="/files/6jZUy6vwzQ1AGWLX61x7" alt=""><figcaption></figcaption></figure>

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.magecomp.com/magento-2-mobile-otp-login-extension-pro/frontend-forgot-password.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
