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.
This commit is contained in:
evazion
2020-09-21 15:06:47 -05:00
parent f2d611ba69
commit aa2d04322a

View File

@@ -16,7 +16,7 @@ class EmailAddress < ApplicationRecord
end
def nondisposable?
EmailValidator.nondisposable?(address)
EmailValidator.nondisposable?(normalized_address)
end
def validate_deliverable