Change the expired nonce return status code from 400 to 419.
This commit is contained in:
parent
e1d2ecef10
commit
e44ddff9bb
|
@ -57,7 +57,7 @@ class SessionController < ApplicationController
|
|||
|
||||
sso = DiscourseSingleSignOn.parse(request.query_string)
|
||||
if !sso.nonce_valid?
|
||||
return render(text: I18n.t("sso.timeout_expired"), status: 400)
|
||||
return render(text: I18n.t("sso.timeout_expired"), status: 419)
|
||||
end
|
||||
|
||||
if ScreenedIpAddress.should_block?(request.remote_ip)
|
||||
|
|
Loading…
Reference in New Issue