Use auth info in domain info query

This commit is contained in:
Martin Lensment 2014-10-20 16:39:46 +03:00
parent c89ea6998e
commit 946659083d

View file

@ -178,7 +178,10 @@ module Epp::DomainsHelper
return nil
end
if domain.registrar != current_epp_user.registrar && secure[:secure] == true
@ph[:authInfo] ||= {}
return domain if domain.auth_info == @ph[:authInfo][:pw]
if (domain.registrar != current_epp_user.registrar && secure[:secure] == true) &&
epp_errors << {
code: '2302',
msg: I18n.t('errors.messages.domain_exists_but_belongs_to_other_registrar'),