提交 5a71ba7c 编写于 作者: m0_37741424's avatar m0_37741424

发送邮件失败异常拦截

上级 0f536fb3
......@@ -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());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册