You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2020/03/23 00:20:07 UTC
[couchdb] 03/04: add to Allow admins to have...
This is an automated email from the ASF dual-hosted git repository.
rnewson pushed a commit to branch admin-2fa
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 4236f90ec1bc147974b275133b2488e508873389
Author: Robert Newson <rn...@apache.org>
AuthorDate: Mon Mar 23 00:02:24 2020 +0000
add to Allow admins to have...
---
src/couch/src/couch_auth_cache.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/couch/src/couch_auth_cache.erl b/src/couch/src/couch_auth_cache.erl
index f77c79e..f4c4e46 100644
--- a/src/couch/src/couch_auth_cache.erl
+++ b/src/couch/src/couch_auth_cache.erl
@@ -68,7 +68,7 @@ add_roles(Props, ExtraRoles) ->
get_admin(UserName) when is_binary(UserName) ->
get_admin(?b2l(UserName));
get_admin(UserName) when is_list(UserName) ->
- Result = case config:get("admins", UserName) of
+ case config:get("admins", UserName) of
"-hashed-" ++ HashedPwdAndSalt ->
% the name is an admin, now check to see if there is a user doc
% which has a matching name, salt, and password_sha