fix(email): Add login links to deactivation and org deletion emails#117053
Merged
Conversation
In both the 'account deactivated' and 'org queued for deletion' emails, users who hit the org restore page while their account is inactive run into an infinite redirect loop. Making the login step explicit and clickable reduces friction and surfaces the required action clearly. - user-deactivated: 'please log in' is now a link to sentry.io/auth/login/ - org_delete_confirm: adds a note below the Restore button explaining that account-close-triggered deletions require logging in and reactivating before the org can be restored; 'please log in' is linked Refs #117050 #117052 Co-authored-by: Nick Meisenheimer <nicholas.meisenheimer@sentry.io>
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 586a3b3. Configure here.
Replace hardcoded sentry.io login URLs with {% absolute_uri '/auth/login/' %}
so the links resolve correctly on self-hosted and custom-domain installs.
Also removes the word 'accidentally' from the org deletion email copy.
Addresses Bugbot review comment on #117053.
Co-authored-by: Nick Meisenheimer <nicholas.meisenheimer@sentry.io>
cvxluo
approved these changes
Jun 6, 2026
markstory
reviewed
Jun 8, 2026
Co-authored-by: Mark Story <mark@mark-story.com>
Co-authored-by: Mark Story <mark@mark-story.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Changes
Two email templates updated to surface the login step explicitly, making it clickable rather than implied.
user-deactivated(html + txt)please log inin "To reactivate your account, please log in before the scheduled deletion date" is now a link tohttps://sentry.io/auth/login/org_delete_confirm(html + txt)please log inlinked tohttps://sentry.io/auth/login/Why
Users who close their account (deactivating it) and then try to restore an org via the link in the deletion email hit an infinite redirect loop — the restore page requires an active account, bounces them to login, which forwards them back to restore, repeat. The fix for the loop is in #117052. These email changes surface the required order of operations (reactivate account first, then restore org) before users even click the restore link.
Refs #117050 #117052
Action taken on behalf of Rahul Chhabria.
View Session in Sentry