diff --git a/server/go/camlistored/camlistored.go b/server/go/camlistored/camlistored.go index addd0d0d8..befea6b37 100644 --- a/server/go/camlistored/camlistored.go +++ b/server/go/camlistored/camlistored.go @@ -320,6 +320,10 @@ func configFileMain() { exitFailure("error parsing JSON object in config file %s: %v", osutil.UserServerConfigPath(), err) } + if password, ok := config["password"].(string); ok { + auth.AccessPassword = password + } + prefixes, ok := config["prefixes"].(map[string]interface{}) if !ok { exitFailure("No top-level \"prefixes\": {...} in %s", osutil.UserServerConfigPath)