Stop sso login processing after rendering error

This prevents a DoubleRenderError triggered on the redirect_to.
This commit is contained in:
Harm Geerts 2015-05-11 14:17:32 +02:00
parent ca89d16946
commit d9a3e82516

View File

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