summaryrefslogtreecommitdiff
path: root/src/chttpd_auth.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/chttpd_auth.erl')
-rw-r--r--src/chttpd_auth.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/chttpd_auth.erl b/src/chttpd_auth.erl
index d1e9a7a5..26f05e1a 100644
--- a/src/chttpd_auth.erl
+++ b/src/chttpd_auth.erl
@@ -164,18 +164,18 @@ handle_session_req(Req) ->
send_method_not_allowed(Req, "GET,HEAD,POST,DELETE").
handle_user_req(#httpd{method='POST'}=Req) ->
- DbName = couch_config:get("chttpd_auth", "authentication_db", "users"),
+ DbName = couch_config:get("couch_httpd_auth", "authentication_db", "users"),
ensure_users_db_exists(DbName),
create_user(Req, DbName);
handle_user_req(#httpd{method=Method, path_parts=[_]}=_Req) when
Method == 'PUT' orelse Method == 'DELETE' ->
throw({bad_request, <<"Username is missing">>});
handle_user_req(#httpd{method='PUT', path_parts=[_, UserName]}=Req) ->
- DbName = couch_config:get("chttpd_auth", "authentication_db", "users"),
+ DbName = couch_config:get("couch_httpd_auth", "authentication_db", "users"),
ensure_users_db_exists(DbName),
update_user(Req, DbName, UserName);
handle_user_req(#httpd{method='DELETE', path_parts=[_, UserName]}=Req) ->
- DbName = couch_config:get("chttpd_auth", "authentication_db", "users"),
+ DbName = couch_config:get("couch_httpd_auth", "authentication_db", "users"),
ensure_users_db_exists(DbName),
delete_user(Req, DbName, UserName);
handle_user_req(Req) ->
@@ -205,7 +205,7 @@ get_user(UserName) ->
end.
load_user_from_db(UserName) ->
- DbName = couch_config:get("chttpd_auth", "authentication_db", "users"),
+ DbName = couch_config:get("couch_httpd_auth", "authentication_db", "users"),
try fabric:open_doc(DbName, UserName, []) of
{ok, Doc} ->
?LOG_INFO("cache miss on username ~s", [UserName]),