Skip to content

Commit

Permalink
Merge pull request #6873 from ORCID/SendDeactivateAccountActionShould…
Browse files Browse the repository at this point in the history
…BePOST

send-deactivate-account.json should be a POST action, since we are as…
  • Loading branch information
leomendoza123 authored Aug 18, 2023
2 parents a74d707 + 0033601 commit abfcf7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ public ModelAndView confirmDeactivateOrcidAccount(HttpServletRequest request, Ht
return new Errors();
}

@RequestMapping(value = "/send-deactivate-account.json", method = RequestMethod.GET)
@RequestMapping(value = "/send-deactivate-account.json", method = RequestMethod.POST)
public @ResponseBody String startDeactivateOrcidAccount(HttpServletRequest request) {
String currentUserOrcid = getCurrentUserOrcid();
recordEmailSender.sendOrcidDeactivateEmail(currentUserOrcid);
Expand Down

0 comments on commit abfcf7f

Please sign in to comment.