Skip to content

[1.6.x] fix(backend): reject duplicate email when creating a user via the API (#13100) - #13102

Merged
SchrodingersGat merged 1 commit into
1.6.xfrom
backport/1.6.x/pr-13100
Oct 26, 2026
Merged

SchrodingersGat merged 1 commit into
1.6.xfrom
backport/1.6.x/pr-13100

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from master to 1.6.x:

Questions ?

Please refer to the Backport tool documentation

…#13100)

UserCreateSerializer did not check whether the email address was
already in use (signup does, via allauth). Email based flows such as
the login link look users up by email and silently send nothing when
more than one user matches, while the API still reports success.

Two existing tests reused one email for several users; give them
distinct addresses.

(cherry picked from commit bab82bf)
@SchrodingersGat SchrodingersGat added the bug Identifies a bug which needs to be addressed label Oct 26, 2026
@SchrodingersGat SchrodingersGat added this to the 1.6.2 milestone Oct 26, 2026
@codecov

codecov Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.28%. Comparing base (0f22ca6) to head (ad2621b).

Additional details and impacted files
@@           Coverage Diff           @@
##            1.6.x   #13102   +/-   ##
=======================================
  Coverage   87.28%   87.28%           
=======================================
  Files        1522     1522           
  Lines      105730   105736    +6     
  Branches    11973    11973           
=======================================
+ Hits        92284    92293    +9     
+ Misses      13379    13376    -3     
  Partials       67       67           
Flag Coverage Δ
backend 92.13% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 92.76% <100.00%> (+<0.01%) ⬆️
Backend General 94.50% <ø> (ø)
Frontend 79.37% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat
SchrodingersGat merged commit 04d36da into 1.6.x Oct 26, 2026
41 checks passed
@SchrodingersGat
SchrodingersGat deleted the backport/1.6.x/pr-13100 branch October 26, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Identifies a bug which needs to be addressed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants