diff options
Diffstat (limited to 'src/couchdb/couch_httpd_auth.erl')
-rw-r--r-- | src/couchdb/couch_httpd_auth.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd_auth.erl b/src/couchdb/couch_httpd_auth.erl index 6df1a393..00952942 100644 --- a/src/couchdb/couch_httpd_auth.erl +++ b/src/couchdb/couch_httpd_auth.erl @@ -128,7 +128,7 @@ get_user(Db, UserName) -> {ok, View, _Group} -> FoldFun = fun({_, Value}, _, {_}) -> {stop, Value} end, {ok, _, {Result}} = couch_view:fold(View, FoldFun, {nil}, - [{start_key, {UserName, nil}},{end_key, {UserName, {}}}]), + [{start_key, {UserName, ?MIN_STR}},{end_key, {UserName, ?MAX_STR}}]), Result; {not_found, _Reason} -> nil |