|
@@ -134,8 +134,8 @@ public class MdeEnterpriseAuthServiceImpl implements MdeEnterpriseAuthService {
|
|
|
throw exception(MDE_USER_EMAIL_NOT_REGISTERED);
|
|
|
}
|
|
|
if (!userBindService.isPasswordMatch(password, user.getPassword())) {
|
|
|
- // 只有输错密码并且是首次才需要发邮箱告诉密码
|
|
|
- if (null == user.getLoginDate()) {
|
|
|
+ // 只有输错密码并且是首次and密码和邮箱一致(旧平台同步的数据才是邮箱和密码一致)才需要发邮箱告诉密码
|
|
|
+ if (null == user.getLoginDate()&&userBindService.isPasswordMatch(user.getEmail(), user.getPassword())) {
|
|
|
// 效验有没有更改过密码
|
|
|
// 没有则发送邮箱
|
|
|
MailSendSingleToUserReqDTO reqDTO = new MailSendSingleToUserReqDTO();
|