add 用户增加邮箱密码字段,发送邮箱改为查询发件人的邮箱,没有邮箱或邮箱密码时,默认使用admin的邮箱

This commit is contained in:
lijiarao
2021-09-27 15:48:46 +08:00
parent 90aa46c375
commit a30b5b0d75
8 changed files with 98 additions and 25 deletions
@@ -121,4 +121,9 @@ public class LoginUser {
*/
private String roleCode;
/**
* 邮箱授权码
*/
private String emailPassword;
}
@@ -20,6 +20,9 @@ public class StaticConfig {
@Value(value = "${spring.mail.username}")
private String emailFrom;
@Value(value = "${spring.mail.host}")
private String host;
/*@Bean
public void initStatic() {