Skip to content

feat: username check remove#6318

Open
Binx98 wants to merge 3 commits into
1Panel-dev:v2from
Binx98:feat-binx-username-check
Open

feat: username check remove#6318
Binx98 wants to merge 3 commits into
1Panel-dev:v2from
Binx98:feat-binx-username-check

Conversation

@Binx98

@Binx98 Binx98 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it?

本 PR 移除用户昵称 nick_name 的唯一性限制,允许不同用户使用相同昵称。

当前系统中昵称被当作唯一字段处理,导致用户创建或编辑资料时,如果昵称重复会被拦截。昵称本身更偏向展示名称,不适合作为唯一身份标识;用户唯一性仍应由 usernameemail 等字段保证。

Summary of your change

  • 移除 User.nick_name 字段上的 unique=True 约束
  • 创建用户时不再校验昵称唯一性
  • 更新用户信息时不再校验昵称唯一性
  • 保留用户名和邮箱的唯一性校验逻辑

@Binx98 Binx98 changed the title Feat binx username check username check remove Jul 2, 2026
@Binx98 Binx98 changed the title username check remove feat: username check remove Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant