Skip to content

Commit

Permalink
AUT-7: Reset Password needs to set the new global property as of 2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mseaton committed Jan 16, 2025
1 parent 55541db commit 5a48561
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public void reset(@RequestParam(value = "username") String username,
String requestUrl = request.getRequestURL().toString();
String hostUrl = requestUrl.replace("resetPassword/reset.action", "account/resetPassword.page");
hostUrl += "?activationKey={activationKey}";
administrationService.setGlobalProperty(OpenmrsConstants.GP_HOST_URL, hostUrl);
administrationService.setGlobalProperty(OpenmrsConstants.GP_HOST_URL, hostUrl); // pre-2.6.0
administrationService.setGlobalProperty("security.passwordResetUrl", hostUrl); // 2.6.0+

userService.setUserActivationKey(user);
}
Expand Down

0 comments on commit 5a48561

Please sign in to comment.