Merge pull request #3470 from ahuling13/expired-nonce-return-status
In the case of an expired nonce, return a 400 status code instead of 500
This commit is contained in:
commit
14ab9c45b6
|
@ -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: 500)
|
||||
return render(text: I18n.t("sso.timeout_expired"), status: 419)
|
||||
end
|
||||
|
||||
if ScreenedIpAddress.should_block?(request.remote_ip)
|
||||
|
|
Loading…
Reference in New Issue