Fix mongo authentication, version 0.2.1
This commit is contained in:
1 parent
8ad8e38553
commit
b9dcf43cf4
2 files changed
+3
-3
No files matched your search
@@ -94,8 +94,8 @@ class Database(object):
|
||||
raise TypeError("password must be an instance of str")
|
||||
|
||||
# First get the nonce
|
||||
result = yield self["$cmd"].find_one({"getnonce": 1})
|
||||
return (yield self.authenticate_with_nonce(result, name, password))
|
||||
result = yield from self["$cmd"].find_one({"getnonce": 1})
|
||||
return (yield from self.authenticate_with_nonce(result, name, password))
|
||||
|
||||
@coroutine
|
||||
def authenticate_with_nonce(self, result, name, password):
|
||||
|
||||
Reference in new issue
Block a user