mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-06 17:08:29 +08:00
发送邮件失败异常拦截
This commit is contained in:
parent
0f536fb337
commit
5a71ba7c62
@ -72,7 +72,11 @@ public class MailOtpAuthn extends AbstractOtpAuthn {
|
||||
messageTemplate,userInfo.getUsername(),token,(interval / 60)));
|
||||
|
||||
email.addTo(userInfo.getEmail());
|
||||
email.send();
|
||||
try {
|
||||
email.send();
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
_logger.debug(
|
||||
"token " + token + " send to user " + userInfo.getUsername()
|
||||
+ ", email " + userInfo.getEmail());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user