From 7ae1e463461ce53c9302853d14240116478271a8 Mon Sep 17 00:00:00 2001 From: Dan Galdi Date: Tue, 13 Aug 2024 10:10:48 -0400 Subject: [PATCH] Fix argument order --- .../java/org/gusdb/wdk/model/config/ModelConfigBuilder.java | 6 +++--- .../java/org/gusdb/wdk/model/user/UserPasswordEmailer.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Model/src/main/java/org/gusdb/wdk/model/config/ModelConfigBuilder.java b/Model/src/main/java/org/gusdb/wdk/model/config/ModelConfigBuilder.java index 228fd81c3..c5ea41243 100644 --- a/Model/src/main/java/org/gusdb/wdk/model/config/ModelConfigBuilder.java +++ b/Model/src/main/java/org/gusdb/wdk/model/config/ModelConfigBuilder.java @@ -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; } /** diff --git a/Model/src/main/java/org/gusdb/wdk/model/user/UserPasswordEmailer.java b/Model/src/main/java/org/gusdb/wdk/model/user/UserPasswordEmailer.java index 99602422a..6a1373721 100644 --- a/Model/src/main/java/org/gusdb/wdk/model/user/UserPasswordEmailer.java +++ b/Model/src/main/java/org/gusdb/wdk/model/user/UserPasswordEmailer.java @@ -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[]{}); } }