OAuth: deny login for disabled users (#17957)

pull/17964/head
Alexander Zobnin 6 years ago committed by Torkel Ödegaard
parent b1a0bd115c
commit 48d5a1bcd3
  1. 5
      pkg/api/login_oauth.go

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

Loading…
Cancel
Save