From aa2d04322a11b2bf6af8a702163c2103a507e69b Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 21 Sep 2020 15:06:47 -0500 Subject: [PATCH] users: fix not being able to verify account with certain valid emails. Bug: Verifying your account with a hotmail.com email address didn't mark your account as verified. This was because the list of allowed email verification domains only included normalized domains, but we were looking up unnormalized domains. --- app/models/email_address.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/email_address.rb b/app/models/email_address.rb index c0f7779be..6267ff2bc 100644 --- a/app/models/email_address.rb +++ b/app/models/email_address.rb @@ -16,7 +16,7 @@ class EmailAddress < ApplicationRecord end def nondisposable? - EmailValidator.nondisposable?(address) + EmailValidator.nondisposable?(normalized_address) end def validate_deliverable