Feature #1006
Updated by Vladimir Krisyuk over 6 years ago
h2. User should be able to submit the Register form and get an access to the App. * On “Register” click, the form has to be validated (same as #1155 #1156 ) * And In positive validation result the app. should search in connect to the server and search for user with the combination of values of the fields: NPI, Key_code, Mobile phone, Email address. 1,2,3 fields. * When user is mathched found in DB by values above, 1,2,3 fields, then the server should trigger the sms code to the user’s phone number and open the next screen “Sms verification”. * Only after sms code submission the reqistration process will be completed and username/password will be created. (TB) *Negative flow1:* In case if user was not match found in DB by 1,2,3 fields: App. should show over the “Registration” screen an error message in the over the screen window: “The physician with the provided data was not found. Please try again or contact MDL account manager” *Negative flow2:* If In case if the Email already in DB and it’s verified for that User, then we show message over the screen: “The user was matched, but is already in Db. Please reset the key_code was expired password.” and show the “Forgot password” screen. *And* In case if the Email already in Db. DB and it’s NOT verified for that User then proceed with SMS verification. *Negative flow3:* If the email is taken by other user in DB. Then show the error message on the “Registration” screen in the window: "The key_code you have provided under Email input field: “The email address is expired. Please request the new one." taken. Try other email” for Devs: The 3rd party will be used for Two-factor authentication by the code. We need to choose one. Example: https://rapidapi.com/blog/sms-apis-send-texts/ https://www.nexmo.com/ Mockups: * 2.Registration * 3.Sms verification