feat(registration): add email domain whitelist policy#724
Merged
Wei-Shaw merged 2 commits intoWei-Shaw:mainfrom Mar 4, 2026
Merged
feat(registration): add email domain whitelist policy#724Wei-Shaw merged 2 commits intoWei-Shaw:mainfrom
Wei-Shaw merged 2 commits intoWei-Shaw:mainfrom
Conversation
Contributor
PMExtra
commented
Mar 2, 2026
- 新增管理员系统设置,邮箱域名白名单,限制只允许指定的邮箱后缀,可以一定程度防止批量注册。(留空则允许任意邮箱)
- 注册账号时,如果输入的邮箱不在白名单内,则显示提示。
- 该功能只影响常规注册,不影响 管理员创建用户 或者 OAuth 等登录方式。
Contributor
Author
Owner
Owner
|
gmail存在多种变种情况 比如:test@gmail.com |
1c09d9c to
bd0801a
Compare
Contributor
Author
|
@Wei-Shaw gmail 变体的问题,我考虑到了。 我预期的处理方式是,在用户表加一个
然后在注册时,把输入的邮箱也同样归一化,再去用户表比对。 因为这个改动比较大,而且新增字段还要对现有数据做 migration 。 所以我打算当前 PR 合并后再另起一个 PR 来做这个事。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
