Merge pull request #3451 from ossobv/sso_login_unapproved_account
Stop sso login processing after rendering error
This commit is contained in:
commit
93273cd17a
|
@ -72,6 +72,7 @@ class SessionController < ApplicationController
|
||||||
|
|
||||||
if SiteSetting.must_approve_users? && !user.approved?
|
if SiteSetting.must_approve_users? && !user.approved?
|
||||||
render text: I18n.t("sso.account_not_approved"), status: 403
|
render text: I18n.t("sso.account_not_approved"), status: 403
|
||||||
|
return
|
||||||
else
|
else
|
||||||
log_on_user user
|
log_on_user user
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue