Feature #1011
Updated by Vladimir Krisyuk about 6 years ago
h2. User should be able to recover his password or username *Precondition:* User’s is registered in DML Connect h2. *forgot password* * When User clicks on the forgot password link: * The the app opens the “Forgot password” screen with the “Enter Username” input and [Send via SMS ][Send by Email ] buttons. * Text on the screen: "Just enter your username and we'll send you a code to reset your password" * User chooses how he wants to receive a reset code. # [Send via SMS ] - should send a reset code via sms to the User’s mobile. # [Send by Email ] - - should send a reset code to the User’s email. * When user chooses how to receive the “Reset code message” then next screen is opened with the input field where the user has to provide the code. * The code should be valid for 5 minutes. Error messages: # The code is expired # The code is not correct * When user submits the correct code the “set a new password” screen should be opened. Where user has to set the new password. * After User submits the new password, the Sing in screen should be opened. *Negative flow:* When user enters username and it's not found in DB then show error Message: _"User not found." _ h2. forgot username * When User clicks on the forgot username link: * Then app should open “Forget username” screen with the same buttons as for forgot password. * Text on the screen: "Please provide email address associated with your account" * User should receive the username via SMS or Email. And no other actions are required. * User may Sign in with username and his usual password. *Negative flow:* When user enters email address and it's not found in db then show error Message: _"User with such email address not found. Conact MDL support to gain access."_ *On the “5.Forgot password - recovery code is sent” screen:* A 6-digits code was sent to : k****@***l.com - The email address should be displayed partly (only first letter and 4 last letters). For the Phone number: show last 4 digits Text: “Wrong email or phone number? Go back and enter the correct information to receive the code. ” Resend verification code - sends redirect on the code again. Forgot Password screen where user again chooses where to send the code. ------------- mockups: * 4.forgot password * 4.1.Forgot username * 5.Forgot password - recovery code is sent * 6.Forgot password - recovery - set new password * 11.1 home screen - set the new password * 1.Sign in