diff options
Diffstat (limited to 'src/chttpd_oauth.erl')
-rw-r--r-- | src/chttpd_oauth.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chttpd_oauth.erl b/src/chttpd_oauth.erl index 70995409..84506efe 100644 --- a/src/chttpd_oauth.erl +++ b/src/chttpd_oauth.erl @@ -30,7 +30,7 @@ oauth_authentication_handler(#httpd{mochi_req=MochiReq}=Req) -> % Look up the consumer key and get the roles to give the consumer set_user_ctx(Req, AccessToken) -> - DbName = couch_config:get("chttpd_auth", "authentication_db"), + DbName = couch_config:get("couch_httpd_auth", "authentication_db", "users"), ok = chttpd_auth:ensure_users_db_exists(?l2b(DbName)), Name = ?l2b(couch_config:get("oauth_token_users", AccessToken)), case chttpd_auth:get_user(Name) of |