Skip to content

Commit 807dd9a

Browse files
committed
Update 11228
1 parent 3f6d458 commit 807dd9a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ public boolean configure(String name, Map<String, Object> params) throws Configu
108108
Boolean useAuth = UserPasswordResetSMTPUseAuth.value();
109109
String username = UserPasswordResetSMTPUsername.value();
110110
String password = UserPasswordResetSMTPPassword.value();
111+
Boolean useStartTLS = UserPasswordResetSMTPUseStartTLS.value();
112+
String enabledSecurityProtocols = UserPasswordResetSMTPEnabledSecurityProtocols.value();
111113

112114
if (!StringUtils.isEmpty(smtpHost) && smtpPort != null && smtpPort > 0) {
113115
String namespace = "password.reset.smtp";
@@ -119,6 +121,8 @@ public boolean configure(String name, Map<String, Object> params) throws Configu
119121
configs.put(getKey(namespace, SMTPMailSender.CONFIG_USE_AUTH), useAuth.toString());
120122
configs.put(getKey(namespace, SMTPMailSender.CONFIG_USERNAME), username);
121123
configs.put(getKey(namespace, SMTPMailSender.CONFIG_PASSWORD), password);
124+
configs.put(getKey(namespace, SMTPMailSender.CONFIG_USE_STARTTLS), useStartTLS.toString());
125+
configs.put(getKey(namespace, SMTPMailSender.CONFIG_ENABLED_SECURITY_PROTOCOLS), enabledSecurityProtocols);
122126

123127
mailSender = new SMTPMailSender(configs, namespace);
124128
}

0 commit comments

Comments
 (0)