Change the expired nonce return status code from 400 to 419.

This commit is contained in:
Andrew Huling 2015-05-19 13:13:14 -04:00
parent e1d2ecef10
commit e44ddff9bb
1 changed files with 1 additions and 1 deletions

View File

@ -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)