Skip to content

Commit

Permalink
Fix argument order
Browse files Browse the repository at this point in the history
  • Loading branch information
dmgaldi committed Aug 13, 2024
1 parent ad48694 commit 7ae1e46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,12 @@ public void setSmtpServer(String smtpServer) {
_smtpServer = smtpServer;
}

public void setSmtpUser(String smtpUser) {
_smtpServer = smtpUser;
public void setSmtpUsername(String smtpUsername) {
_smtpUsername = smtpUsername;
}

public void setSmtpPassword(String smtpPassword) {
_smtpServer = smtpPassword;
_smtpPassword = smtpPassword;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ public void emailTemporaryPassword(User user, String password) throws WdkModelEx
.replaceAll("\\$\\$" + EMAIL_MACRO_PASSWORD + "\\$\\$",
Matcher.quoteReplacement(password));

Utilities.sendEmail(smtpServer, user.getEmail(), supportEmail, emailSubject, emailContent, null, null, smtpUser, smtpPass, new Attachment[]{});
Utilities.sendEmail(smtpServer, smtpUser, smtpPass, user.getEmail(), supportEmail, emailSubject, emailContent, null, null, new Attachment[]{});
}
}

0 comments on commit 7ae1e46

Please sign in to comment.