mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 19:00:32 -06:00
Stop sso login processing after rendering error
This prevents a DoubleRenderError triggered on the redirect_to.
This commit is contained in:
parent
ca89d16946
commit
d9a3e82516
@ -72,6 +72,7 @@ class SessionController < ApplicationController
|
||||
|
||||
if SiteSetting.must_approve_users? && !user.approved?
|
||||
render text: I18n.t("sso.account_not_approved"), status: 403
|
||||
return
|
||||
else
|
||||
log_on_user user
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user