mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
Add support of punycode domains in emails
This commit is contained in:
parent
56ac816dd1
commit
b4369bdcd0
6 changed files with 77 additions and 21 deletions
|
@ -39,8 +39,7 @@ class EmailAddressVerification < ApplicationRecord
|
|||
end
|
||||
|
||||
def verify
|
||||
# media = success ? :mx : :smtp
|
||||
media = :regex
|
||||
media = :mx
|
||||
validation_request = Truemail.validate(email, with: media)
|
||||
|
||||
if validation_request.result.success
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue