mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
add mongo test case: auth
This commit is contained in:
@@ -309,7 +309,7 @@ end
|
||||
|
||||
function mongo_db:auth(user, pass)
|
||||
local authmod = rawget(self.connection, "authmod") or "scram_sha1"
|
||||
local auth_func = auth_method[authmod]
|
||||
local auth_func = auth_method["auth_" .. authmod]
|
||||
assert(auth_func , "Invalid authmod")
|
||||
return auth_func(self, user, pass)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user