From 42411e4a26461229c6bca6e89ca55e98a80f5a4e Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 30 九月 2021 18:08:17 +0800 Subject: [PATCH] bug修改 --- fanli/src/main/java/com/yeshi/fanli/util/email/MyAuthenticator.java | 42 +++++++++++++++++++++--------------------- 1 files changed, 21 insertions(+), 21 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/util/email/MyAuthenticator.java b/fanli/src/main/java/com/yeshi/fanli/util/email/MyAuthenticator.java index 2ebf21c..16b497f 100644 --- a/fanli/src/main/java/com/yeshi/fanli/util/email/MyAuthenticator.java +++ b/fanli/src/main/java/com/yeshi/fanli/util/email/MyAuthenticator.java @@ -1,21 +1,21 @@ -package com.yeshi.fanli.util.email; - -import javax.mail.Authenticator; -import javax.mail.PasswordAuthentication; - -public class MyAuthenticator extends Authenticator { - String userName = null; - String password = null; - - public MyAuthenticator() { - } - - public MyAuthenticator(String username, String password) { - this.userName = username; - this.password = password; - } - - protected PasswordAuthentication getPasswordAuthentication() { - return new PasswordAuthentication(userName, password); - } -} +package com.yeshi.fanli.util.email; + +import javax.mail.Authenticator; +import javax.mail.PasswordAuthentication; + +public class MyAuthenticator extends Authenticator { + String userName = null; + String password = null; + + public MyAuthenticator() { + } + + public MyAuthenticator(String username, String password) { + this.userName = username; + this.password = password; + } + + protected PasswordAuthentication getPasswordAuthentication() { + return new PasswordAuthentication(userName, password); + } +} -- Gitblit v1.8.0