mirror of
https://github.com/internetee/registry.git
synced 2025-08-13 13:09:32 +02:00
Use auth info in domain info query
This commit is contained in:
parent
c89ea6998e
commit
946659083d
1 changed files with 4 additions and 1 deletions
|
@ -178,7 +178,10 @@ module Epp::DomainsHelper
|
||||||
return nil
|
return nil
|
||||||
end
|
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 << {
|
epp_errors << {
|
||||||
code: '2302',
|
code: '2302',
|
||||||
msg: I18n.t('errors.messages.domain_exists_but_belongs_to_other_registrar'),
|
msg: I18n.t('errors.messages.domain_exists_but_belongs_to_other_registrar'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue