Skip to content

Fix 500 error when submitting invalid email domain in reset password form#7570

Merged
mitchellhenke merged 2 commits intomainfrom
mitchellhenke/fix-reset-email-form-error
Jan 3, 2023
Merged

Fix 500 error when submitting invalid email domain in reset password form#7570
mitchellhenke merged 2 commits intomainfrom
mitchellhenke/fix-reset-email-form-error

Conversation

@mitchellhenke
Copy link
Contributor

🛠 Summary of changes

The FormEmailValidator module does not include translation helpers, and raises an exception when calling the t translation helper method (NewRelic error).

This was missed when the validation was added in #7380 because the RegisterUserEmailForm includes the translation helper itself, the PasswordResetEmailForm does not, and no test was written against it.

Mitchell Henke added 2 commits January 3, 2023 14:44
changelog: Bug Fixes, Reset Password, Fix 500 error when translating invalid domain error message
@mitchellhenke mitchellhenke requested a review from a team January 3, 2023 20:50
@mitchellhenke mitchellhenke changed the title Fix 500 error when submitting invalid domain in reset password form Fix 500 error when submitting invalid email domain in reset password form Jan 3, 2023
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 good catch. should we patch this in to prod?

@mitchellhenke mitchellhenke merged commit bfac162 into main Jan 3, 2023
@mitchellhenke mitchellhenke deleted the mitchellhenke/fix-reset-email-form-error branch January 3, 2023 21:09
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