Activation key can activate a different account whose email differs only in case
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 82/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
调研方向
从 contentcuration/contentcuration/views/users.py 中的 UserActivationView.get_user 和 contentcuration/contentcuration/models.py 中的 User.get_for_email 开始,追踪激活密钥如何选择未激活的账户。为两个仅大小写不同的地址添加回归测试,检查每个密钥是否只激活与之匹配的账户。测试通过且两个账户分别独立激活后,即为完成。
由索引模型根据 Issue 内容生成。
描述
Overview
UserActivationView.get_user finds the account to activate with User.get_for_email(username, is_active=False), which matches email case-insensitively and returns the newest matching inactive record. When two inactive accounts differ only in email case, the activation key for one activates the other. Registration now rejects case-insensitive duplicates, so only older duplicate accounts are affected.
Complexity: Low
Target branch: hotfixes
Context
UserActivationView.get_usercallsUser.get_for_email.- Reproduced: with inactive accounts
[email protected]and[email protected], the activation key issued for[email protected]activated[email protected]. - Related: #4779, #3050.
The Change
- Activation should activate the account whose email exactly matches the one in the key.
Acceptance Criteria
General
- With two inactive accounts whose emails differ only in case, each account's activation key activates that account and no other.
Testing
- The reproduced case in Context has a regression test.
AI usage
I scoped the audit. Claude Code found and reproduced this failure and drafted this issue.
- 主要语言
- Python
- 星标
- 212
- 派生
- 321
- 平均合并
- 1 天 7 小时
- 30 天内合并 PR
- 14
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
learningequality/studio 的其他 Issue
-
Community library status changes don't update `date_updated`可能已有人在做 @LightCreator1007 于 1 天前认领。 未关闭DEV: backend good first issue help wanted
难度 2/5 1-3 小时 新手友好度 84/100
learningequality/studio#6414 · 3 条评论 ·
维护者通常 1 天内回复
-
DEV: backend
难度 2/5 1-3 小时 新手友好度 76/100
learningequality/studio#6409 ·
维护者通常 1 天内回复
-
DEV: backend
难度 2/5 1-3 小时 新手友好度 78/100
learningequality/studio#6407 ·
维护者通常 1 天内回复
-
DEV: backend good first issue help wanted
难度 2/5 1-3 小时 新手友好度 78/100
learningequality/studio#6404 · 1 条评论 ·
维护者通常 1 天内回复
-
DEV: backend good first issue help wanted
难度 2/5 1-3 小时 新手友好度 78/100
learningequality/studio#6400 · 1 条评论 ·
维护者通常 1 天内回复
查看 learningequality/studio 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 77/100
canonical/paas-charm#407 · 1 条评论 ·
维护者通常 5 天内回复
-
bug
难度 1/5 1 小时以内 新手友好度 90/100
FAIRmat-NFDI/pynxtools-spm#136 ·
维护者通常 1 天内回复
-
enhancement tooling
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
`read_nexus` entry point points to a function that no longer exists可能已有人在做 @RubelMozumder 今天认领。 未关闭annotator bug
难度 1/5 1 小时以内 新手友好度 88/100
FAIRmat-NFDI/pynxtools#876 · 1 条评论 ·
维护者通常 1 天内回复
-
[Bug]: HTTP 499 (Client Closed Request) is classified as a non-retryable format_error, so a mid-flight abort fails the turn over instead of retrying可能已有人在做 @yipinghuang1991 今天认领。 未关闭comp/agent P2 type/bug
难度 2/5 1-3 小时 新手友好度 82/100
NousResearch/hermes-agent#156837 ·
维护者通常 1 天内回复