mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +02:00
add ability to check registrant change and add-remove object properties
This commit is contained in:
parent
2016c55cb9
commit
c1c4e3db66
1 changed files with 19 additions and 3 deletions
|
@ -178,6 +178,10 @@ module Epp
|
||||||
doc.document.add.children.each_with_index do |x, i|
|
doc.document.add.children.each_with_index do |x, i|
|
||||||
store << doc.document.add.children[i].name
|
store << doc.document.add.children[i].name
|
||||||
end
|
end
|
||||||
|
elsif value == 'chg'
|
||||||
|
doc.document.chg.children.each_with_index do |x, i|
|
||||||
|
store << doc.document.chg.children[i].name
|
||||||
|
end
|
||||||
else
|
else
|
||||||
doc.document.rem.children.each_with_index do |x, i|
|
doc.document.rem.children.each_with_index do |x, i|
|
||||||
store << doc.document.rem.children[i].name
|
store << doc.document.rem.children[i].name
|
||||||
|
@ -192,10 +196,22 @@ module Epp
|
||||||
def dnskey_update_enabled
|
def dnskey_update_enabled
|
||||||
find_domain
|
find_domain
|
||||||
|
|
||||||
if @domain.dnskey_update_enabled? && !params[:parsed_frame].css('update').empty?
|
# binding.pry
|
||||||
|
|
||||||
return if parsed_response_for_dnskey('add')
|
if @domain.dnskey_update_enabled? && !params[:parsed_frame].css('update').empty?
|
||||||
return if parsed_response_for_dnskey('rem')
|
flag = true
|
||||||
|
|
||||||
|
flag = false unless parsed_response_for_dnskey('chg')
|
||||||
|
|
||||||
|
if flag
|
||||||
|
flag = false unless parsed_response_for_dnskey('add')
|
||||||
|
end
|
||||||
|
|
||||||
|
if flag
|
||||||
|
return if parsed_response_for_dnskey('rem')
|
||||||
|
end
|
||||||
|
|
||||||
|
# binding.pry
|
||||||
|
|
||||||
return epp_errors.add(:epp_errors,
|
return epp_errors.add(:epp_errors,
|
||||||
code: '2304',
|
code: '2304',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue