summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/couch/src/couch_httpd_auth.erl2
-rw-r--r--src/setup/src/setup.erl4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/couch/src/couch_httpd_auth.erl b/src/couch/src/couch_httpd_auth.erl
index dfc9394e5..01a210d05 100644
--- a/src/couch/src/couch_httpd_auth.erl
+++ b/src/couch/src/couch_httpd_auth.erl
@@ -315,7 +315,7 @@ ensure_cookie_auth_secret() ->
case chttpd_util:get_chttpd_auth_config("secret") of
undefined ->
NewSecret = ?b2l(couch_uuids:random()),
- config:set("couch_httpd_auth", "secret", NewSecret),
+ config:set("chttpd_auth", "secret", NewSecret),
NewSecret;
Secret -> Secret
end.
diff --git a/src/setup/src/setup.erl b/src/setup/src/setup.erl
index 5129765da..56773e4da 100644
--- a/src/setup/src/setup.erl
+++ b/src/setup/src/setup.erl
@@ -254,8 +254,8 @@ sync_uuid() ->
sync_config("couchdb", "uuid", Uuid).
sync_auth_secret() ->
- Secret = config:get("couch_httpd_auth", "secret"),
- sync_config("couch_httpd_auth", "secret", Secret).
+ Secret = config:get("chttpd_auth", "secret"),
+ sync_config("chttpd_auth", "secret", Secret).
sync_config(Section, Key, Value) ->