Skip to content

Commit

Permalink
Merge pull request #1301 from internetee/remove-mod-epp-header
Browse files Browse the repository at this point in the history
Remove EPP response header
  • Loading branch information
vohmar authored Sep 13, 2019
2 parents d9ab4e1 + 5831a6b commit e68d377
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions app/controllers/epp/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ def login
if success
if params[:parsed_frame].css('newPW').first
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
end
end
Expand All @@ -93,7 +92,6 @@ def login
epp_session.save!
render_epp_response('login_success')
else
response.headers['X-EPP-Returncode'] = '2500'
handle_errors
end
end
Expand All @@ -119,7 +117,6 @@ def logout

@api_user = current_user # cache current_user for logging
epp_session.destroy
response.headers['X-EPP-Returncode'] = '1500'
render_epp_response('logout')
end

Expand Down
2 changes: 0 additions & 2 deletions app/controllers/epp_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def validate_against_schema
code: 2001,
msg: error
}
response.headers['X-EPP-Returncode'] = '2200'
end
handle_errors and return if epp_errors.any?
end
Expand Down Expand Up @@ -371,7 +370,6 @@ def update_epp_session
if session_timeout_reached?
@api_user = current_user # cache current_user for logging
epp_session.destroy
response.headers['X-EPP-Returncode'] = '1500'

epp_errors << {
msg: t('session_timeout'),
Expand Down

0 comments on commit e68d377

Please sign in to comment.