diff options
author | John Christopher Anderson <jchris@apache.org> | 2008-12-09 17:22:12 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2008-12-09 17:22:12 +0000 |
commit | aebae784dfb8e55b4e2947a444155e94212b90e7 (patch) | |
tree | 935cd029900f3d614d256dade3ff0b62df9f5d5d /src | |
parent | 8205d358f94c80659f8fd887c2395d265688a718 (diff) |
user name should be binary for json
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@724786 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_httpd.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl index e1c99651..7d621d25 100644 --- a/src/couchdb/couch_httpd.erl +++ b/src/couchdb/couch_httpd.erl @@ -184,7 +184,7 @@ default_authentication_handler(Req) -> {User, Pass} -> case couch_server:is_admin(User, Pass) of true -> - #user_ctx{name=User, roles=[<<"_admin">>]}; + #user_ctx{name=?l2b(User), roles=[<<"_admin">>]}; false -> throw({unauthorized, <<"Name or password is incorrect.">>}) end; |