Skip to content

feat(user): tell the account address about password and email changes - #2831

Merged
lbesson merged 1 commit into
masterfrom
feat/account-change-notices
Dec 3, 2026
Merged

lbesson merged 1 commit into
masterfrom
feat/account-change-notices

Conversation

@lbesson

@lbesson lbesson commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

What

  • After a password change (account page or reset link), a notice goes to the address of the account.
  • After a request to change the address, a notice goes to the current address, with the new one masked (n***@example.org).
  • Both point to the page to ask for a new password, so whoever did not make the change can take the account back. Asking for a new password also cancels a pending address change.
  • A notice that cannot be sent is logged; the change itself is kept.
  • Templates in the 9 languages (ca, de, en, es, eu, fr, it, sl, zh).

Notes

Touches views/user.py and views/user_account.py like #2830: the second one merged needs a small rebase.

Tests

  • Notices sent to the right address, masked new address, link present.
  • No notice for other account changes.
  • A failing email does not fail the password change.
  • Templates exist and format in every language.

🤖 Generated with Claude Code

A change of password (on the account page or through a reset link) now
sends a notice to the address of the account. A request to change the
address sends a notice to the current address, with the new one masked.
Both point to the page to ask for a new password, so a user who did not
make the change can take the account back. Templates in the 9 languages.

A notice that cannot be sent is logged; the change itself stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8a32f7b0-4a9b-4318-8e9c-38a2bfd91539
Commits

Reviewing files that changed from the base of the PR and between 440845d and b260a62.

Files selected for processing: 42

  • c2corg_api/emails/email_service.py
  • c2corg_api/emails/i18n/ca/email_change_requested_body
  • c2corg_api/emails/i18n/ca/email_change_requested_subject
  • c2corg_api/emails/i18n/ca/password_changed_body
  • c2corg_api/emails/i18n/ca/password_changed_subject
  • c2corg_api/emails/i18n/de/email_change_requested_body
  • c2corg_api/emails/i18n/de/email_change_requested_subject
  • c2corg_api/emails/i18n/de/password_changed_body
  • c2corg_api/emails/i18n/de/password_changed_subject
  • c2corg_api/emails/i18n/en/email_change_requested_body
  • c2corg_api/emails/i18n/en/email_change_requested_subject
  • c2corg_api/emails/i18n/en/password_changed_body
  • c2corg_api/emails/i18n/en/password_changed_subject
  • c2corg_api/emails/i18n/es/email_change_requested_body
  • c2corg_api/emails/i18n/es/email_change_requested_subject
  • c2corg_api/emails/i18n/es/password_changed_body
  • c2corg_api/emails/i18n/es/password_changed_subject
  • c2corg_api/emails/i18n/eu/email_change_requested_body
  • c2corg_api/emails/i18n/eu/email_change_requested_subject
  • c2corg_api/emails/i18n/eu/password_changed_body
  • c2corg_api/emails/i18n/eu/password_changed_subject
  • c2corg_api/emails/i18n/fr/email_change_requested_body
  • c2corg_api/emails/i18n/fr/email_change_requested_subject
  • c2corg_api/emails/i18n/fr/password_changed_body
  • c2corg_api/emails/i18n/fr/password_changed_subject
  • c2corg_api/emails/i18n/it/email_change_requested_body
  • c2corg_api/emails/i18n/it/email_change_requested_subject
  • c2corg_api/emails/i18n/it/password_changed_body
  • c2corg_api/emails/i18n/it/password_changed_subject
  • c2corg_api/emails/i18n/sl/email_change_requested_body
  • c2corg_api/emails/i18n/sl/email_change_requested_subject
  • c2corg_api/emails/i18n/sl/password_changed_body
  • c2corg_api/emails/i18n/sl/password_changed_subject
  • c2corg_api/emails/i18n/zh/email_change_requested_body
  • c2corg_api/emails/i18n/zh/email_change_requested_subject
  • c2corg_api/emails/i18n/zh/password_changed_body
  • c2corg_api/emails/i18n/zh/password_changed_subject
  • c2corg_api/tests/emails/test_emails.py
  • c2corg_api/tests/views/test_user.py
  • c2corg_api/tests/views/test_user_account.py
  • c2corg_api/views/user.py
  • c2corg_api/views/user_account.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 16 complexity · 0 duplication

Metric Results
Complexity 16
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@lbesson
lbesson merged commit 1c6c2d3 into master Dec 3, 2026
7 checks passed
@lbesson
lbesson deleted the feat/account-change-notices branch December 3, 2026 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant