fix: 去除邮箱修改限制,邮箱始终可修改并校验唯一性

This commit is contained in:
OpenCode
2026-07-22 22:42:49 +08:00
parent 2a9453af15
commit 4ce7801737
@@ -51,9 +51,6 @@ public class AdminUserInfoController extends BaseController<UserInfoService, Use
if (ObjUtil.isNotEmpty(before.getUsername())) {
t.setUsername(null);
}
if (ObjUtil.isNotEmpty(before.getUsername()) && ObjUtil.isNotEmpty(before.getEmail())) {
t.setEmail(null);
}
if (ObjUtil.isNotEmpty(t.getEmail()) && !ObjUtil.equals(t.getEmail(), before.getEmail())) {
userInfoService.checkEmailUnique(t.getEmail(), id);
}