Fix mongo authentication, version 0.2.1
This commit is contained in:
@@ -94,8 +94,8 @@ class Database(object):
|
|||||||
raise TypeError("password must be an instance of str")
|
raise TypeError("password must be an instance of str")
|
||||||
|
|
||||||
# First get the nonce
|
# First get the nonce
|
||||||
result = yield self["$cmd"].find_one({"getnonce": 1})
|
result = yield from self["$cmd"].find_one({"getnonce": 1})
|
||||||
return (yield self.authenticate_with_nonce(result, name, password))
|
return (yield from self.authenticate_with_nonce(result, name, password))
|
||||||
|
|
||||||
@coroutine
|
@coroutine
|
||||||
def authenticate_with_nonce(self, result, name, password):
|
def authenticate_with_nonce(self, result, name, password):
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -93,7 +93,7 @@ else:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="asyncio_mongo",
|
name="asyncio_mongo",
|
||||||
version="0.2",
|
version="0.2.1",
|
||||||
description="Asynchronous Python 3.3+ driver for MongoDB <http://www.mongodb.org>",
|
description="Asynchronous Python 3.3+ driver for MongoDB <http://www.mongodb.org>",
|
||||||
author="Alexandre Fiori, Don Brown",
|
author="Alexandre Fiori, Don Brown",
|
||||||
author_email="mrdon@twdata.org",
|
author_email="mrdon@twdata.org",
|
||||||
|
|||||||
Reference in New Issue
Block a user