个人中心修改密码2

This commit is contained in:
2025-09-18 15:25:32 +08:00
parent 11e48acc81
commit 1b2bf542fa
4 changed files with 18 additions and 5 deletions

View File

@ -126,9 +126,8 @@ public class AppPasswordAuthStrategy implements IAuthStrategy {
.eq(AppUser::getUserType, UserType.APP_USER.getUserType()));
if (ObjectUtil.isNull(user)) {
log.info("登录用户:{} 不存在.", username);
// throw new UserException("user.not.exists", phonenumber);
// 新增AppUser用户
return null;
throw new UserException("user.not.exists", username);
} else if (SystemConstants.DISABLE.equals(user.getStatus())) {
log.info("登录用户:{} 已被停用.", username);
throw new UserException("user.blocked", username);