Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

User will be Landed/Navigated on this screen after clicking on Forgot password Link in Home Screen

OTP Request

This feature allows user to request OTP by entering valid Phone Number

If user Forgets his password user can set new password by following few steps.

  • Click on Forgot password Link present in Login Screen

  • Enter Valid Phone Number

Other steps are explained in Reset Password Section

Files Path

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

Field Validation

SL

Fields

Validation

1

Phone Number*

r'^[0-9]+$'

API details

SL

End Point

Request Method

Request Info

1

user-otp/v1/_send

POST

"otp": {
"mobileNumber": {},
"tenantId": {},
"type": "passwordreset",
"userType": "Employee"
}

Stack

2 → Language Selection Screen. + Login Screen + ForgotPassword

Pop → Login Screen Screen.

 

Widgets Utilised from Library

Reset Password

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

User will be Landed/Navigated on this screen after clicking on Continue button on Forgot Password

Screen.

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.

Password Hint Card

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

    • Minimum 6 digits

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

    • At least one letter

    • Atleast one number

Files Path

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

Field 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

1

user/password/nologin/_update

POST

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


Stack

1 → Language Selection Screen. + Login Screen + Forgot Password + Reset Password.

Pop → Forgot Password Screen.

Widgets Utilised from Library

  • No labels