iteration
This commit is contained in:
@ -73,7 +73,7 @@ while true do
|
|||||||
rednet.send(client_id, "user not found")
|
rednet.send(client_id, "user not found")
|
||||||
end
|
end
|
||||||
|
|
||||||
if convert_password(data.users[request.username].password) == request.password then
|
if convert_password(request.password) == data.users[request.username].password then
|
||||||
local token = generate_token(request.username)
|
local token = generate_token(request.username)
|
||||||
|
|
||||||
rednet.send(client_id, token)
|
rednet.send(client_id, token)
|
||||||
|
Reference in New Issue
Block a user