From 6c45e453c439a677ff795cb16338226cb24f703a Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sun, 3 Apr 2011 19:38:22 -0700 Subject: [PATCH] add password config option --- server/go/camlistored/camlistored.go | 4 ++++ 1 file changed, 4 insertions(+) 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)