mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add allow_sign_up override for auth.google/github.
This commit is contained in:
@@ -63,7 +63,7 @@ func OAuthLogin(ctx *middleware.Context) {
|
||||
|
||||
// create account if missing
|
||||
if err == m.ErrUserNotFound {
|
||||
if !setting.AllowUserSignUp {
|
||||
if !connect.IsSignupAllowed() {
|
||||
ctx.Redirect(setting.AppSubUrl + "/login")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user