Permalink
Browse files

Change setting name to match config for signup disable

  • Loading branch information...
brycekahle committed Sep 5, 2017
1 parent e6d1cea commit 12b3db269783fbe62693db2c15ae323d4fc35b85
Showing with 3 additions and 3 deletions.
  1. +1 −1 README.md
  2. +2 −2 api/settings.go
View
@@ -289,7 +289,7 @@ GoTrue exposes the following endpoints:
"gitlab": true,
"google": true
},
"signup_enabled": true,
"disable_signup": false,
"autoconfirm": false
}
```
View
@@ -11,7 +11,7 @@ type ExternalProviderSettings struct {
type Settings struct {
ExternalProviders ExternalProviderSettings `json:"external"`
SignupEnabled bool `json:"signup_enabled"`
DisableSignup bool `json:"disable_signup"`
Autoconfirm bool `json:"autoconfirm"`
}
@@ -25,7 +25,7 @@ func (a *API) Settings(w http.ResponseWriter, r *http.Request) error {
GitLab: config.External.Gitlab.Enabled,
Google: config.External.Google.Enabled,
},
SignupEnabled: !config.DisableSignup,
DisableSignup: config.DisableSignup,
Autoconfirm: config.Mailer.Autoconfirm,
})
}

0 comments on commit 12b3db2

Please sign in to comment.