Skip to content

Commit

Permalink
Access denied forbidden status brakes IE and pingdom monitoring (#617)
Browse files Browse the repository at this point in the history
*Access denied page  forbidden status brakes IE and pingdom monitoring, removing it.
  • Loading branch information
teadur authored Oct 17, 2017
1 parent be4c60a commit 0f352ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/registrar/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def check_ip_restriction

return if allowed

render text: t('registrar.authorization.ip_not_allowed', ip: request.ip), status: :forbidden
render text: t('registrar.authorization.ip_not_allowed', ip: request.ip)
end
end
end
2 changes: 1 addition & 1 deletion spec/requests/registrar/ip_restriction_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
context 'when ip is not allowed' do
specify do
get registrar_login_path
expect(response).to be_forbidden
expect(response.body).to match "Access denied"
end
end
end
Expand Down

0 comments on commit 0f352ca

Please sign in to comment.