mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 07:34:45 +02:00
Merge pull request #1301 from internetee/remove-mod-epp-header
Remove EPP response header
This commit is contained in:
commit
e68d37704d
2 changed files with 0 additions and 5 deletions
|
@ -82,7 +82,6 @@ class Epp::SessionsController < EppController
|
||||||
if success
|
if success
|
||||||
if params[:parsed_frame].css('newPW').first
|
if params[:parsed_frame].css('newPW').first
|
||||||
unless @api_user.update(plain_text_password: params[:parsed_frame].css('newPW').first.text)
|
unless @api_user.update(plain_text_password: params[:parsed_frame].css('newPW').first.text)
|
||||||
response.headers['X-EPP-Returncode'] = '2500'
|
|
||||||
handle_errors(@api_user) and return
|
handle_errors(@api_user) and return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -93,7 +92,6 @@ class Epp::SessionsController < EppController
|
||||||
epp_session.save!
|
epp_session.save!
|
||||||
render_epp_response('login_success')
|
render_epp_response('login_success')
|
||||||
else
|
else
|
||||||
response.headers['X-EPP-Returncode'] = '2500'
|
|
||||||
handle_errors
|
handle_errors
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -119,7 +117,6 @@ class Epp::SessionsController < EppController
|
||||||
|
|
||||||
@api_user = current_user # cache current_user for logging
|
@api_user = current_user # cache current_user for logging
|
||||||
epp_session.destroy
|
epp_session.destroy
|
||||||
response.headers['X-EPP-Returncode'] = '1500'
|
|
||||||
render_epp_response('logout')
|
render_epp_response('logout')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@ class EppController < ApplicationController
|
||||||
code: 2001,
|
code: 2001,
|
||||||
msg: error
|
msg: error
|
||||||
}
|
}
|
||||||
response.headers['X-EPP-Returncode'] = '2200'
|
|
||||||
end
|
end
|
||||||
handle_errors and return if epp_errors.any?
|
handle_errors and return if epp_errors.any?
|
||||||
end
|
end
|
||||||
|
@ -371,7 +370,6 @@ class EppController < ApplicationController
|
||||||
if session_timeout_reached?
|
if session_timeout_reached?
|
||||||
@api_user = current_user # cache current_user for logging
|
@api_user = current_user # cache current_user for logging
|
||||||
epp_session.destroy
|
epp_session.destroy
|
||||||
response.headers['X-EPP-Returncode'] = '1500'
|
|
||||||
|
|
||||||
epp_errors << {
|
epp_errors << {
|
||||||
msg: t('session_timeout'),
|
msg: t('session_timeout'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue