Skip to content

Commit f3b59ed

Browse files
DamianSheldonJay Aisenbrey
authored andcommitted
#41 Remove unnecessary slash in retrieving port for the forgot password link
When retrieving the port for the forgot password link a slash was being added to the end of the schema when it shouldn't have been
1 parent fed594e commit f3b59ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/main/java/com/community/controller/account/LoginController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public String processResetPassword(@ModelAttribute("resetPasswordForm") ResetPas
8181

8282
@Override
8383
public String getResetPasswordUrl(HttpServletRequest request) {
84-
String url = request.getScheme() + "://" + request.getServerName() + getResetPasswordPort(request, request.getScheme() + "/");
84+
String url = request.getScheme() + "://" + request.getServerName() + getResetPasswordPort(request, request.getScheme());
8585

8686
if (request.getContextPath() != null && ! "".equals(request.getContextPath())) {
8787
url = url + request.getContextPath() + "/login/resetPassword";

0 commit comments

Comments
 (0)