mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
fix #1012
This commit is contained in:
@@ -24,7 +24,6 @@ Protocol:
|
|||||||
10. Server->Client : 200 base64(subid)
|
10. Server->Client : 200 base64(subid)
|
||||||
|
|
||||||
Error Code:
|
Error Code:
|
||||||
400 Bad Request . challenge failed
|
|
||||||
401 Unauthorized . unauthorized by auth_handler
|
401 Unauthorized . unauthorized by auth_handler
|
||||||
403 Forbidden . login_handler failed
|
403 Forbidden . login_handler failed
|
||||||
406 Not Acceptable . already in login (disallow multi login)
|
406 Not Acceptable . already in login (disallow multi login)
|
||||||
@@ -70,7 +69,6 @@ local function launch_slave(auth_handler)
|
|||||||
local hmac = crypt.hmac64(challenge, secret)
|
local hmac = crypt.hmac64(challenge, secret)
|
||||||
|
|
||||||
if hmac ~= crypt.base64decode(response) then
|
if hmac ~= crypt.base64decode(response) then
|
||||||
write("auth", fd, "400 Bad Request\n")
|
|
||||||
error "challenge failed"
|
error "challenge failed"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user