mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Fix CC issues
This commit is contained in:
parent
a13725faa7
commit
3d444c3a04
5 changed files with 27 additions and 14 deletions
|
@ -1,11 +1,11 @@
|
|||
class EmailAddressVerification < ApplicationRecord
|
||||
RECENTLY_VERIFIED_PERIOD = 1.month
|
||||
|
||||
scope :not_verified_recently, -> {
|
||||
scope :not_verified_recently, lambda {
|
||||
where('verified_at IS NULL or verified_at < ?', verification_period)
|
||||
}
|
||||
|
||||
scope :verified_recently, -> {
|
||||
scope :verified_recently, lambda {
|
||||
where('verified_at IS NOT NULL and verified_at >= ?', verification_period)
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,8 @@ class EmailAddressVerification < ApplicationRecord
|
|||
end
|
||||
|
||||
def verify
|
||||
media = success ? :mx : :smtp
|
||||
# media = success ? :mx : :smtp
|
||||
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