feat(config): changed name of allow_user_login_pass to disable_login_form, changed the section of the config option to [auth], impacts merged PR #5423

This commit is contained in:
Torkel Ödegaard
2016-09-28 15:27:08 +02:00
parent 3e657357e5
commit 2750c8a801
7 changed files with 25 additions and 9 deletions
+5 -2
View File
@@ -92,7 +92,7 @@ var (
VerifyEmailEnabled bool
LoginHint string
DefaultTheme string
AllowUserPassLogin bool
DisableLoginForm bool
// Http auth
AdminUser string
@@ -519,7 +519,10 @@ func NewConfigContext(args *CommandLineArgs) error {
VerifyEmailEnabled = users.Key("verify_email_enabled").MustBool(false)
LoginHint = users.Key("login_hint").String()
DefaultTheme = users.Key("default_theme").String()
AllowUserPassLogin = users.Key("allow_user_pass_login").MustBool(true)
// auth
auth := Cfg.Section("auth")
DisableLoginForm = auth.Key("disable_login_form").MustBool(false)
// anonymous access
AnonymousEnabled = Cfg.Section("auth.anonymous").Key("enabled").MustBool(false)