summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/couchdb/couch_httpd.erl2
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;