Skip to content

Commit 7e69d8e

Browse files
Davi Torresdaviftorres
authored andcommitted
Remove Domain/IP from Password Reset Link to custom Global Setting
1 parent 9fd2b90 commit 7e69d8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/apache/cloudstack/user/UserPasswordResetManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ public void setResetTokenAndSend(UserAccount userAccount) {
174174
final String username = userAccount.getUsername();
175175
final String subject = "Password Reset Request";
176176

177-
String resetLink = String.format("%s/client/#/user/resetPassword?username=%s&token=%s",
178-
ManagementServerAddresses.value().split(",")[0], username, resetToken);
177+
String resetLink = String.format("/client/#/user/resetPassword?username=%s&token=%s",
178+
username, resetToken);
179179
String content = getMessageBody(userAccount, resetToken, resetLink);
180180

181181
SMTPMailProperties mailProperties = new SMTPMailProperties();

0 commit comments

Comments
 (0)