SbloodyS commented on code in PR #10721:
URL: https://github.com/apache/dolphinscheduler/pull/10721#discussion_r911568597
##########
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/main/java/org/apache/dolphinscheduler/plugin/alert/email/MailSender.java:
##########
@@ -105,20 +105,29 @@ public MailSender(Map<String, String> config) {
enableSmtpAuth = config.get(MailParamsConstants.NAME_MAIL_SMTP_AUTH);
- mailUser = config.get(MailParamsConstants.NAME_MAIL_USER);
- requireNonNull(mailUser, MailParamsConstants.NAME_MAIL_USER +
mustNotNull);
+ if (Boolean.TRUE.toString().equalsIgnoreCase(enableSmtpAuth)) {
Review Comment:
I'm not quite sure about this feature since not using a password is a very
unsafe operation. I think we should not provide this way to users. WDYT?
@ruanwenjun @caishunfeng
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]