588: Forgot Password
Test Case #: 588 | Test Case Name: Forgot Password |
System: OpenLMIS | Subsystem: Auth |
Test case designed by: Anna Czyrko | Design Date:24.08.2016 |
Short description:
Acceptance:
|
|
Pre – conditions: |
Step | Action | Expected system response | Comment |
1 | In Postman enter: in URL: http://localhost:8080/api/users/forgotPassword?email=test@openlmis.org Method: POST | In console should appears password reset token. | |
2 | Change password. In Postman enter: In URL: http://localhost:8080/api/users/changePassword Method: POST BODY: { "token": token from console, "newPassword": ... } | ||
3 | Check if the password is changed. In Postman enter: In URL: http://localhost:8080/oauth/token?grand_type=password&username=admin&password=passwordNew Basic authorization: username and password Method: POST
| ||
4 | In Postman enter: In URL: http://localhost:8080/api/users?access_token= <generated token> Method: GET | ||
|
---|
Post – conditions:
|
OpenLMIS: the global initiative for powerful LMIS software