diff options
Diffstat (limited to 'src/couchdb/couch_httpd.erl')
-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; |