Skip to content

Commit

Permalink
Use POST for reset (OWASP#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushroshan authored Apr 29, 2023
1 parent 92a732a commit 5d6f5f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion postman_collections/crAPI.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}
],
"request": {
"method": "GET",
"method": "POST",
"header": [
{
"key": "User-Agent",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public ResponseEntity<JwtResponse> loginWithTokenV2(
}

/** @return success or failure of password updation. */
@GetMapping("/reset-test-users")
@PostMapping("/reset-test-users")
public ResponseEntity<?> resetPassword() {
ArrayList<SeedUser> userDetailList = new TestUsers().getUsers();
for (SeedUser userDetails : userDetailList) {
Expand Down

0 comments on commit 5d6f5f8

Please sign in to comment.