Added auth info to contact

This commit is contained in:
Andres Keskküla 2014-08-15 16:09:05 +03:00
parent eaa9b015e2
commit c1f90754d1
7 changed files with 50 additions and 27 deletions

View file

@ -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