Feature #1451
closed
- Status changed from New issue to Needs Testing
- % Done changed from 0 to 100
Summary: new endpoints were implemented:
1) Forget password:
POST /api/mdlaccount/forgetPasswordRequest parameters:
Rule:
- if user is not found then message "User is not exists" is returned
- If user is exists with specified username then sms is send to telephone number with temp token - "Enter reset password code {code}"
After user get security code then he should verified it by using api POST /api/mdlaccount/verifyResetPasswordCode
2) Forget username:
POST /api/mdlaccount/forgetUsernameRequest parameters:
- email
- provider (0 - email, 1 -Sms)
Rule:
- if email is null or empty - then validation message "Email was not provided" is returned.
- if user with specified email is not exists then message "User with such email is not found. Please contact support."
- if user found then based on the provider value email or sms is send to user with next text body "Your username is {user.UserName}".
Please refer to https://develop_feature_ironjab-api.gbglis.xyz/swagger/index.html for testing and checking request/response data parameters.
- Assignee changed from Artem Bakhmat to Alice Gor
The API is tested and verified in DEV
- Status changed from Needs Testing to Closed
- Status changed from Closed to In Progress
Update: when user select "Email" option for getting email with username then server will do next:
1) Creates record in the tblemails table with related column values:
- Txt_Subject = "Username"
- Txt_Message = "Your username is {username}"
- Txt_From = "dmdl@mdlab.com"
- Txt_To = "{email}"
See screen - http://prntscr.com/r2dqwg
Example of DB query: select * from tblemails where Txt_Status <> 'Sent' and Txt_To = 'artem.bakhmat@gmail.com';
2) Then global service that process pending emails is sending email to recepients.
For testing purpose there enough to check creation of record in the tblemails table, because email sender might be disabled on test environment.
Please test and let me know if you have any questions
- Status changed from In Progress to Closed
The APi is tested and verified in DEV
Also available in: Atom
PDF