Migrate from deprecated params_hash to parsed_frame #2752

This commit is contained in:
Martin Lensment 2015-07-23 13:39:02 +03:00
parent 67ae9ff020
commit 02186987fc

View file

@ -124,7 +124,8 @@ class Epp::SessionsController < EppController
### HELPER METHODS ### ### HELPER METHODS ###
def login_params def login_params
ph = params_hash['epp']['command']['login'] user = params[:parsed_frame].css('clID').first.text
{ username: ph[:clID], password: ph[:pw] } pw = params[:parsed_frame].css('pw').first.text
{ username: user, password: pw }
end end
end end