mirror of
https://github.com/internetee/registry.git
synced 2025-05-21 03:39:40 +02:00
Added auth info to contact
This commit is contained in:
parent
eaa9b015e2
commit
c1f90754d1
7 changed files with 50 additions and 27 deletions
|
@ -94,6 +94,8 @@ module EppContactXmlBuilder
|
|||
xml_params[:chg][:postalInfo] = postalInfo
|
||||
xml_params[:chg][:postalInfo][:addr] = addr
|
||||
|
||||
xml_params[:chg][:authInfo] = xml_params[:chg][:authInfo] || { pw: 'ccds4324pok' }
|
||||
|
||||
|
||||
xml.instruct!(:xml, standalone: 'no')
|
||||
xml.epp('xmlns' => 'urn:ietf:params:xml:ns:epp-1.0') do
|
||||
|
@ -122,6 +124,11 @@ module EppContactXmlBuilder
|
|||
end
|
||||
end
|
||||
end
|
||||
unless xml_params[:chg][:authInfo] == [false]
|
||||
xml.tag!('contact:authInfo') do
|
||||
xml.tag!('contact:pw', xml_params[:chg][:authInfo][:pw] ) unless xml_params[:chg][:authInfo][:pw] == false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue