mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +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 parsed_frame.css('newPW').first
|
||||
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
|
||||
end
|
||||
end
|
||||
|
@ -85,7 +85,7 @@ class Epp::SessionsController < EppController
|
|||
epp_session.update_column(:registrar_id, @api_user.registrar_id)
|
||||
render_epp_response('login_success')
|
||||
else
|
||||
response.headers['X-EPP-Returncode'] = '2200'
|
||||
response.headers['X-EPP-Returncode'] = '2500'
|
||||
handle_errors
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue