Update Password - FTL

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

Users are redirected to the Update Password screen once they log in successfully the first time.

 

User Interaction on Screen

  • Enter the OTP sent on the user’s 10 digit Mobile Number.

  • Set the new password for logging into the application.

  • Click on Change Password to apply new password credentials for the user.

  • Users can see the allocated Grama Panchayat name and code in the table.

Password Hint Card

  • This feature helps to Match with the user’s password and check if the Password contains

    • Minimum 6 digits

    • At least one special character ( !#$%^&...)

    • At least one letter

    • At least one number

 

Files Path

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

 

 

Logic for Tenant Filtration

Fetching the tenants from MDMS, based on the user roles in the user request filtering the tenants by comparing tenant Id.

Field Validations

SL

Fileds

Validations

SL

Fileds

Validations

1

Enter the OTP sent *

r'^[0-9]+$' , 6 digit

2

Enter a New Password*

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

3

Confirm New Password

Match with New Password

API Details

SL

End Point

Request Method

Request Info

SL

End Point

Request Method

Request Info

1

user/password/nologin/_update

POST

"otpReference": {},
"userName": {},
"newPassword": {},
"tenantId": {},
"type": “Employee”

2

egov-mdms-service/v1/_search

POST

"MdmsCriteria": {
"tenantId": tenantId,
"moduleDetails": [
{
"moduleName": "tenant",
"masterDetails": [
{"name": "tenants"}
],
},
]
}


Stack

1 → Language Selection Screen. + Login Screen + Update Password + Update password success

Pop → Login

Widgets Utilised from Library

 

Files Path

View → https://github.com/egovernments/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/screeens/ResetPassword/Updatepassword.dart

Controller → https://github.com/egovernments/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/repository/tendants_repo.dart