Update mongo.lua (#2054)

这里运算符有优先级问题
This commit is contained in:
maplescene
2025-05-25 23:46:17 +08:00
committed by GitHub
parent e0bc6fe2d6
commit 5885514138

View File

@@ -243,7 +243,7 @@ function auth_method:auth_scram_sha1(username,password)
local salt = parsed_t['s'] local salt = parsed_t['s']
local rnonce = parsed_t['r'] local rnonce = parsed_t['r']
if not string.sub(rnonce, 1, 12) == nonce then if string.sub(rnonce, 1, 12) ~= nonce then
skynet.error("Server returned an invalid nonce.") skynet.error("Server returned an invalid nonce.")
return false return false
end end