mirror of
https://github.com/discourse/discourse.git
synced 2025-04-16 17:19:02 +08:00
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…
x
Reference in New Issue
Block a user