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 <[email protected]> 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
