Activation key can activate a different account whose email differs only in case

オープン 初心者向け
#6,410 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
django, python

調査の方向性

contentcuration/contentcuration/views/users.py の UserActivationView.get_user と contentcuration/contentcuration/models.py の User.get_for_email から、アクティベーションキーが非アクティブなアカウントをどのように選択するかを追跡します。大文字と小文字だけが異なる2つのアドレスを対象に、それぞれのキーが対応するアカウントだけを有効化することを確認する回帰テストを追加します。テストが成功し、両方のアカウントが個別に有効化されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

DEV: backend

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
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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

learningequality/studio のほかの issue

learningequality/studio の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。