|
@@ -140,12 +140,12 @@ public class MdeAuthServiceImpl implements MdeAuthService {
|
|
|
throw exception(MDE_USER_MOBILE_NOT_EXISTS);
|
|
|
}
|
|
|
if (!userService.isPasswordMatch(password, user.getPassword())) {
|
|
|
- createLoginLog(user.getId(), account, logTypeEnum, LoginResultEnum.BAD_CREDENTIALS);
|
|
|
// 只有输错密码并且是首次才提示修改密码
|
|
|
if (null == user.getLoginDate()) {
|
|
|
// 第一次登录
|
|
|
throw exception(MDE_USER_PHONE_INIT_PASSWORD);
|
|
|
} else {
|
|
|
+ createLoginLog(user.getId(), account, logTypeEnum, LoginResultEnum.BAD_CREDENTIALS);
|
|
|
throw exception(MDE_AUTH_LOGIN_BAD_CREDENTIALS);
|
|
|
}
|
|
|
}
|