Activation key can activate a different account whose email differs only in case
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 82/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
調査の方向性
contentcuration/contentcuration/views/users.py の UserActivationView.get_user と contentcuration/contentcuration/models.py の User.get_for_email から、アクティベーションキーが非アクティブなアカウントをどのように選択するかを追跡します。大文字と小文字だけが異なる2つのアドレスを対象に、それぞれのキーが対応するアカウントだけを有効化することを確認する回帰テストを追加します。テストが成功し、両方のアカウントが個別に有効化されれば完了です。
索引モデルが 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時間
- マージ済み PR(30日)
- 14
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
learningequality/studio のほかの issue
-
Community library status changes don't update `date_updated`対応中かも @ArpitaSamanta10 が今日担当しました。 オープンcommunity-contribution-in-progress DEV: backend good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
learningequality/studio#6414 · コメント 8 件 · 担当者 1 名 ·
メンテナーはふだん 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 日以内に返信
-
Stripe webhook accepts events when no webhook secret is configured対応中かも @adibmbrk が今日担当しました。 オープンcommunity-contribution-in-progress DEV: backend good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
learningequality/studio#6404 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Contentnode `requisites` action skips the permission check対応中かも @sreehari-vp が今日担当しました。 オープンcommunity-contribution-in-progress DEV: backend good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
learningequality/studio#6400 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
learningequality/studio の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
readthedocs/readthedocs-builder#73 ·
メンテナーはふだん 1 日以内に返信
-
area: ci bug good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
hffgzktbcc-blip/ounce-core#484 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
vllm-project/vllm-torchtpu#3395 ·
メンテナーはふだん 1 日以内に返信
-
Hermes plugin: MITM-domain discovery misses the model: block (provider/base_url nested under model:) — traffic blind-tunnels silently, zero compression対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
ranxianglei/billion-context#7063 ·
メンテナーはふだん 1 日以内に返信