> For the complete documentation index, see [llms.txt](https://docs.digit.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digit.org/mgramseva/introducing-mgramseva/product-docs/functional-docs/login-and-forgot-password.md).

# Login & Forgot Password

## Overview

The users receive a link via SMS. Clicking on this link redirects the users to the login page of the mGramSeva app. The users can log in from this screen or even reset their password in case they are logging in for the first time. The mGramSeva application link initiates from this screen.

<div align="left"><figure><img src="https://3004460086-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQx3WcyfCEvIVnLyuvkbo%2Fuploads%2Ff4H3hpWQXt7fcp5bvAEA%2Fimage.png?alt=media&amp;token=fa998432-4480-4261-87c3-4cba1f017b16" alt="" width="180"><figcaption></figcaption></figure></div>

## **Language Selection**

The link in the SMS redirects users to this screen which is the first screen which is the language selection screen. The user selects the preferred language and clicks on Continue. English, Hindi, and Punjabi are the supported languages with Punjabi as the default language. Localization in the screens is displayed based on the language selected.

<div align="left"><figure><img src="https://3004460086-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQx3WcyfCEvIVnLyuvkbo%2Fuploads%2FNRfHwR7QcU9utYCzWE2K%2Fimage.png?alt=media&amp;token=3eceaaaf-08d9-4970-8c4e-e6087998f29f" alt="" width="180"><figcaption></figcaption></figure></div>

## **User ID and Password Entry**&#x20;

The user enters the User ID, which is the registered mobile number of the user, and the system-generated password. Clicking on the Continue button logs in the user.

<div align="left"><figure><img src="https://3004460086-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQx3WcyfCEvIVnLyuvkbo%2Fuploads%2FHYwjXzcYRRUGGSbIHluz%2Fimage.png?alt=media&amp;token=5a8da3fa-cc8c-4fa8-9a30-0a964e79e667" alt="" width="206"><figcaption></figcaption></figure></div>

## **Forgot Password**

The Forgot Password link navigates the user to the password reset screen.

## **On Successful Login or on Validations of User ID and Password**

<div align="left"><figure><img src="https://3004460086-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQx3WcyfCEvIVnLyuvkbo%2Fuploads%2FSHfzTMAGz9mNuHghorD5%2Fimage.png?alt=media&amp;token=b2e958e4-943d-4c37-8e99-ec797c3ca66b" alt="" width="180"><figcaption></figcaption></figure></div>

### **First Time Login**

The user is redirected to the password reset screen where they enter the OTP received on the registered mobile number. The next screen prompts the user to enter a new password and then confirm the same. This is similar to the first-time login screen. Clicking on Submit displays the acknowledgement screen. Clicking on the Continue to Login button on the acknowledgement screen takes the user to the login page.

### **Subsequent Login**&#x20;

The user is redirected to the home page of the application which displays the menu options based on the mapped user role.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.digit.org/mgramseva/introducing-mgramseva/product-docs/functional-docs/login-and-forgot-password.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
