Login

Link. → {base url}/mgramseva/selectLanguage/login

Users are redirected to this screen once they select the preferred language in the previous screen

 

User Interaction on Screen

  • Users enter the registered Phone Number and Password.

  • Eye-button icon can be used to view or hide password.

  • Click on Continue.

  • First-time login users navigate to Reset Password Page.

Log in with the default password

YES → Reset Password/ Update Password Screen

NO → Home Screen

Files Path

Primary Files https://github.com/egovernments/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/screeens/Login/Login.dart

Field Validations

SL

Fileds

Validations

SL

Fileds

Validations

1

Phone Number*

r'^[0-9]+$'

2

Password*

r'^(?=.*?[A-Za-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{6,}$'

API details

SL

End Point

Request Method

Request Info

SL

End Point

Request Method

Request Info

1

/user/oauth/token

POST

username: {}

password:{}

scope: read

grant_type: password

tenantId: {}

userType: EMPLOYEE

Stack

1 → Language Selection Screen. + Login Screen.

Pop → Language Selection Screen.

Widgets Utilised from Library