Skip to content

Ensure email belongs to account when resending email confirmation email#7164

Merged
mitchellhenke merged 2 commits intomainfrom
mitchellhenke/ensure-email-address-belongs-to-user
Oct 18, 2022
Merged

Ensure email belongs to account when resending email confirmation email#7164
mitchellhenke merged 2 commits intomainfrom
mitchellhenke/ensure-email-address-belongs-to-user

Conversation

@mitchellhenke
Copy link
Contributor

@mitchellhenke mitchellhenke commented Oct 18, 2022

🛠 Summary of changes

Follow on to #7106 (and #7162) that addresses some user/email address mismatch issues around email resending. This PR ensures that the email address record we are using belongs to the current user. It is difficult to write a regression test for this since it depends partially on the database returning the incorrect record, which only happens some of the time.

This PR also adds analytics to the add email/resend email actions which did not exist previously.

changelog: Bug Fixes, Emails, Ensure email belongs to account when resending email confirmation email
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/ensure-email-address-belongs-to-user branch from cece0b8 to 50542cb Compare October 18, 2022 15:39
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mitchellhenke mitchellhenke merged commit 6f8166c into main Oct 18, 2022
@mitchellhenke mitchellhenke deleted the mitchellhenke/ensure-email-address-belongs-to-user branch October 18, 2022 16:15
mitchellhenke pushed a commit that referenced this pull request Oct 18, 2022
…il (#7164)

* Ensure email belongs to account when resending email confirmation email

changelog: Bug Fixes, Emails, Ensure email belongs to account when resending email confirmation email

* add analytics
This was referenced Oct 20, 2022
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.

2 participants