mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
Return truemail
This reverts commit 862f5639ebbe4d3e6abd5d5be7fb7840e7b83bdf.
This commit is contained in:
parent
0a7b754c4c
commit
e4a02c2e47
35 changed files with 728 additions and 153 deletions
|
@ -17,5 +17,5 @@ Airbrake.configure do |config|
|
|||
end
|
||||
config.environment = ENV['airbrake_env'] || Rails.env
|
||||
config.ignore_environments = %w[test]
|
||||
config.blacklist_keys = Rails.application.config.filter_parameters
|
||||
config.blocklist_keys = Rails.application.config.filter_parameters
|
||||
end
|
||||
|
|
|
@ -29,11 +29,9 @@ Truemail.configure do |config|
|
|||
# Truemail.validate('email@email.com') call without with-parameter
|
||||
# Available validation types: :regex, :mx, :smtp
|
||||
if Rails.env.production?
|
||||
config.default_validation_type = :smtp
|
||||
elsif Rails.env.test?
|
||||
config.default_validation_type = :regex
|
||||
else
|
||||
config.default_validation_type = :mx
|
||||
else
|
||||
config.default_validation_type = :regex
|
||||
end
|
||||
|
||||
# Optional parameter. You can predefine which type of validation will be used for domains.
|
||||
|
|
5
config/locales/admin/email_verifable.en.yml
Normal file
5
config/locales/admin/email_verifable.en.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
en:
|
||||
email_verifable:
|
||||
email_smtp_check_error: SMTP check error
|
||||
email_mx_check_error: Mail domain not found
|
||||
email_regex_check_error: Invalid format
|
5
config/locales/admin/email_verifable.et.yml
Normal file
5
config/locales/admin/email_verifable.et.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
et:
|
||||
email_verifable:
|
||||
email_smtp_check_error: Eposti aadressi ei leitud (SMTP viga)
|
||||
email_mx_check_error: Eposti aadressi domeeni ei leitud
|
||||
email_regex_check_error: Eposti aadress on vigane
|
|
@ -636,6 +636,7 @@ en:
|
|||
edit_dispute: 'Edit dispute'
|
||||
optional: 'Optional'
|
||||
test_registrar: "Test registrar"
|
||||
emails: 'Email addresses'
|
||||
verified_confirm: 'Verified status is for cases when current registrant is the one applying for the update. Legal document signed by the registrant is required. Are you sure this update is properly verified with the registrant?'
|
||||
verified: 'Verified'
|
||||
deleted: 'Deleted'
|
||||
|
|
|
@ -5,3 +5,4 @@ et:
|
|||
date:
|
||||
# Don't forget the nil at the beginning; there's no such thing as a 0th month
|
||||
month_names: [~, Jaanuar, Veebruar, Märts, Aprill, Mai, Juuni, Juuli, August, September, Oktoober, November, Detsember]
|
||||
emails: "Meillaadressid"
|
||||
|
|
|
@ -62,6 +62,10 @@ if @cron_group == 'registry'
|
|||
rake 'domain:discard'
|
||||
end
|
||||
|
||||
every 10.minutes do
|
||||
rake 'verify_email:all_domains'
|
||||
end
|
||||
|
||||
# Should be at least once every 4 days, since according to LHV specs:
|
||||
# "Unread messages older than 5 days are automatically scheduled for deletion"
|
||||
# https://partners.lhv.ee/en/connect/#messaging
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue