Commit bcbf3501 authored by Siddharth Asthana's avatar Siddharth Asthana

Pass formats explicitly when rendering kerberos error

Changelog: other
EE: true
parent 10271db1
......@@ -26,6 +26,9 @@ class OmniauthKerberosSpnegoController < ApplicationController
# when the browser has given up.
#
headers['Www-Authenticate'] = spnego_challenge
render 'errors/kerberos_denied.html.haml', layout: 'errors', status: :unauthorized
render template: 'errors/kerberos_denied',
formats: :html,
locals: { layout: 'errors' },
status: :unauthorized
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment