Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

User will be Landed/Navigated on this screen after clicking on Forgot password Link in Home ScreenUsers are redirected to this screen if they click on the Forgot Password link on the home screen.

OTP Request

...

This feature allows user users 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

...

a valid (the registered) mobile number.

Follow the steps below to set a new password -

  • Click on the Forgot Password link visible on the login screen

  • Enter a valid mobile number

Other steps are explained in the Reset Password Section.

Files Path

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

...

SL

Fields

Validation

1

Phone Number*

r'^[0-9]+$'

API detailsDetails

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  Widgets Utilised from Library

...

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

User will be Landed/Navigated on this screen after clicking on Users are redirected to this screen if they click on the Continue button on Forgot Password Screenscreen.

...

User Interaction on Screen

...

Password Hint Card

  • This feature helps to Match with the user’s password and check for if Password containsprovide the users with a clear indication of what the password should contain. Acceptable passwords must contain -

    • Minimum 6 digits

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

    • At least one letter

    • Atleast At least one number

Files Path

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

...

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 detailsDetails

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.

...