mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
EPP transfer request improvements
This commit is contained in:
parent
2d2a12b7d0
commit
d5954239da
10 changed files with 56 additions and 5 deletions
|
@ -136,7 +136,13 @@ module Epp::DomainsHelper
|
|||
## TRANSFER
|
||||
def validate_domain_transfer_request
|
||||
@ph = params_hash['epp']['command']['transfer']['transfer']
|
||||
xml_attrs_present?(@ph, [['name']])
|
||||
attrs_present = xml_attrs_present?(@ph, [['name']])
|
||||
return false unless attrs_present
|
||||
|
||||
op = parsed_frame.css('transfer').first[:op]
|
||||
return true if %w(approve query).include?(op)
|
||||
epp_errors << { code: '2306', msg: I18n.t('errors.messages.attribute_op_is_invalid') }
|
||||
false
|
||||
end
|
||||
|
||||
## DELETE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue