mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 09:43:36 +02:00
Close connection when receiving 2501 #2710
This commit is contained in:
parent
bed756286d
commit
dcf39d1017
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ class Epp::SessionsController < EppController
|
||||||
if success
|
if success
|
||||||
if parsed_frame.css('newPW').first
|
if parsed_frame.css('newPW').first
|
||||||
unless @api_user.update(password: parsed_frame.css('newPW').first.text)
|
unless @api_user.update(password: parsed_frame.css('newPW').first.text)
|
||||||
response.headers['X-EPP-Returncode'] = '2200'
|
response.headers['X-EPP-Returncode'] = '2500'
|
||||||
handle_errors(@api_user) and return
|
handle_errors(@api_user) and return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -85,7 +85,7 @@ class Epp::SessionsController < EppController
|
||||||
epp_session.update_column(:registrar_id, @api_user.registrar_id)
|
epp_session.update_column(:registrar_id, @api_user.registrar_id)
|
||||||
render_epp_response('login_success')
|
render_epp_response('login_success')
|
||||||
else
|
else
|
||||||
response.headers['X-EPP-Returncode'] = '2200'
|
response.headers['X-EPP-Returncode'] = '2500'
|
||||||
handle_errors
|
handle_errors
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue