Activation key can activate a different account whose email differs only in case
Maintainers usually reply within 1 day
@Madhu-priya123 is already working on this.
Since Nov 26, 2026.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- django, python
- Domain
- authentication, backend
Research direction
Start with UserActivationView.get_user in contentcuration/contentcuration/views/users.py and User.get_for_email in contentcuration/contentcuration/models.py to trace how the activation key selects an inactive account. Add a regression test for the two addresses that differ only in case, checking that each key activates only its matching account. Done when the test passes and both accounts activate independently.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- JavaScript
- Stars
- 214
- Forks
- 327
- Avg merge
- 17h 5m
- Merged PRs (30d)
- 25
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from learningequality/studio
-
Community library status changes don't update `date_updated`Possibly taken @ArpitaSamanta10 claimed this 13 days ago. Opencommunity-contribution-in-progress DEV: backend good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
learningequality/studio#6414 · 8 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
DEV: backend
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
learningequality/studio#6409 ·
Maintainers usually reply within 1 day
-
DEV: backend
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
learningequality/studio#6407 ·
Maintainers usually reply within 1 day
-
Stripe webhook accepts events when no webhook secret is configuredPossibly taken @adibmbrk claimed this 14 days ago. Opencommunity-contribution-in-progress DEV: backend good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
learningequality/studio#6404 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Contentnode `requisites` action skips the permission checkPossibly taken @sreehari-vp claimed this 13 days ago. Opencommunity-contribution-in-progress DEV: backend good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
learningequality/studio#6400 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
All issues in learningequality/studio
Similar issues
-
enhancement good first issue shields parity
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
seuthootDev/terminal-shields#125 ·
Maintainers usually reply within 2 days
-
[ui] 自創球員 (投手): pick 球種 at creation (直球 fixed + up to 2 more), trade-off line, shown on the cardOpenarea:ui P1 status:doing
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
sunososobro-hub/cloudball#1153 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NuSkooler/enigma-bbs#1241 ·
Maintainers usually reply within 1 day
-
harness seguranca target:staging
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
corosolto/client#1507 · 1 comment ·
Maintainers usually reply within 1 day