mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user