mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Trigger verification in update only
This commit is contained in:
parent
6c925c2a11
commit
50d36cb654
1 changed files with 4 additions and 1 deletions
|
@ -95,7 +95,6 @@ class Epp::Domain < Domain
|
||||||
regt = Registrant.find_by(code: code)
|
regt = Registrant.find_by(code: code)
|
||||||
if regt
|
if regt
|
||||||
at[:registrant_id] = regt.id
|
at[:registrant_id] = regt.id
|
||||||
registrant_verification_asked! if frame.css('registrant').attr('verified').to_s.downcase != 'yes'
|
|
||||||
else
|
else
|
||||||
add_epp_error('2303', 'registrant', code, [:registrant, :not_found])
|
add_epp_error('2303', 'registrant', code, [:registrant, :not_found])
|
||||||
end
|
end
|
||||||
|
@ -393,6 +392,10 @@ class Epp::Domain < Domain
|
||||||
at[:tech_domain_contacts_attributes] += at_add[:tech_domain_contacts_attributes]
|
at[:tech_domain_contacts_attributes] += at_add[:tech_domain_contacts_attributes]
|
||||||
at[:dnskeys_attributes] += at_add[:dnskeys_attributes]
|
at[:dnskeys_attributes] += at_add[:dnskeys_attributes]
|
||||||
at[:domain_statuses_attributes] += at_add[:domain_statuses_attributes]
|
at[:domain_statuses_attributes] += at_add[:domain_statuses_attributes]
|
||||||
|
|
||||||
|
if frame.css('registrant').present? && frame.css('registrant').attr('verified').to_s.downcase != 'yes'
|
||||||
|
registrant_verification_asked!
|
||||||
|
end
|
||||||
self.deliver_emails = true # turn on email delivery for epp
|
self.deliver_emails = true # turn on email delivery for epp
|
||||||
|
|
||||||
errors.empty? && super(at)
|
errors.empty? && super(at)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue