Remove parsed_frame helper from epp sessions #2752

This commit is contained in:
Martin Lensment 2015-07-23 13:34:42 +03:00
parent c94da28af6
commit 67ae9ff020
2 changed files with 3 additions and 7 deletions

View file

@ -75,8 +75,8 @@ class Epp::SessionsController < EppController
end
if success
if parsed_frame.css('newPW').first
unless @api_user.update(password: parsed_frame.css('newPW').first.text)
if params[:parsed_frame].css('newPW').first
unless @api_user.update(password: params[:parsed_frame].css('newPW').first.text)
response.headers['X-EPP-Returncode'] = '2500'
handle_errors(@api_user) and return
end
@ -127,8 +127,4 @@ class Epp::SessionsController < EppController
ph = params_hash['epp']['command']['login']
{ username: ph[:clID], password: ph[:pw] }
end
def parsed_frame
@parsed_frame ||= Nokogiri::XML(request.params[:raw_frame]).remove_namespaces!
end
end