Merge branch 'master' of github.com:internetee/registry

This commit is contained in:
Andres Keskküla 2014-08-28 15:38:10 +03:00
commit 23d24aad84
4 changed files with 34 additions and 12 deletions

View file

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