FIX: send email to normalized email owner when hiding emails (#23524)

Previous to this change when both `normalize_emails` and `hide_email_address_taken`
is enabled the expected `account_exists` email was only sent on exact email
matches.

This expands it so it also sends an email to the canonical email owner.
This commit is contained in:
Sam
2023-09-12 11:06:35 +10:00
committed by GitHub
parent 80dcaf1e98
commit b3bef96744
3 changed files with 56 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ module SidekiqHelpers
eq(expectation),
(
if expectation
"No enqueued job with #{expected} found"
"No enqueued job with #{expected}\nFound:\n #{jobs.inspect}"
else
"Enqueued job with #{expected} found"
end