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?
|
||||
render text: I18n.t("sso.account_not_approved"), status: 403
|
||||
return
|
||||
else
|
||||
log_on_user user
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue