Skip to content

Commit 675cd63

Browse files
committed
server: add user.password.reset.smtp.useStartTLS for password reset
1 parent 0d65c8c commit 675cd63

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ public interface UserPasswordResetManager {
5555
"Use auth in the SMTP server for sending emails for resetting password for ACS users",
5656
false, ConfigKey.Scope.Global);
5757

58+
ConfigKey<Boolean> UserPasswordResetSMTPUseStartTLS = new ConfigKey<>(ConfigKey.CATEGORY_ADVANCED,
59+
Boolean.class, "user.password.reset.smtp.useStartTLS", "false",
60+
"If set to true and if we enable security via user.password.reset.smtp.useAuth, this will enable StartTLS to secure the connection.",
61+
true,
62+
ConfigKey.Scope.Global);
63+
5864
ConfigKey<String> UserPasswordResetSMTPUsername = new ConfigKey<>(ConfigKey.CATEGORY_ADVANCED,
5965
String.class, "user.password.reset.smtp.username", null,
6066
"Username for SMTP server for sending emails for resetting password for ACS users",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public ConfigKey<?>[] getConfigKeys() {
9393
UserPasswordResetSMTPHost,
9494
UserPasswordResetSMTPPort,
9595
UserPasswordResetSMTPUseAuth,
96+
UserPasswordResetSMTPUseStartTLS,
9697
UserPasswordResetSMTPUsername,
9798
UserPasswordResetSMTPPassword,
9899
PasswordResetMailTemplate

0 commit comments

Comments
 (0)