mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Merge branch 'master' of github.com:internetee/registry
This commit is contained in:
commit
23d24aad84
4 changed files with 34 additions and 12 deletions
|
@ -63,7 +63,7 @@ module Epp::DomainsHelper
|
|||
@domain = find_domain
|
||||
|
||||
handle_errors(@domain) and return unless @domain
|
||||
handle_errors(@domain) and return unless @domain.transfer(@ph[:authInfo][:pw], current_epp_user)
|
||||
handle_errors(@domain) and return unless @domain.transfer(domain_transfer_params)
|
||||
|
||||
render '/epp/domains/transfer'
|
||||
end
|
||||
|
@ -95,6 +95,14 @@ module Epp::DomainsHelper
|
|||
}
|
||||
end
|
||||
|
||||
def domain_transfer_params
|
||||
res = {}
|
||||
res[:pw] = parsed_frame.css('pw').first.try(:text)
|
||||
res[:action] = parsed_frame.css('transfer').first[:op]
|
||||
res[:current_user] = current_epp_user
|
||||
res
|
||||
end
|
||||
|
||||
## RENEW
|
||||
def validate_domain_renew_request
|
||||
@ph = params_hash['epp']['command']['renew']['renew']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue