diff options
-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 f0bffb36..70995409 100644 --- a/src/chttpd_oauth.erl +++ b/src/chttpd_oauth.erl @@ -31,7 +31,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"), - {ok, _Db} = chttpd_auth:ensure_users_db_exists(?l2b(DbName)), + 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 nil -> Req; |