Commit 48d5a1bc by Alexander Zobnin Committed by Torkel Ödegaard

OAuth: deny login for disabled users (#17957)

parent b1a0bd11
......@@ -191,6 +191,11 @@ func (hs *HTTPServer) OAuthLogin(ctx *m.ReqContext) {
return
}
if cmd.Result.IsDisabled {
hs.redirectWithError(ctx, login.ErrUserDisabled)
return
}
// login
hs.loginUserWithUser(cmd.Result, ctx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment