From 3035d7563ff1d04ae8275d01273489eccc69e075 Mon Sep 17 00:00:00 2001 From: Layla Manley Date: Sun, 8 Oct 2023 05:22:41 -0400 Subject: [PATCH] iteration --- lib/auth.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/auth.lua b/lib/auth.lua index 1878aef..c3197ee 100644 --- a/lib/auth.lua +++ b/lib/auth.lua @@ -30,16 +30,16 @@ function check_user_group(username, group) if id == auth_server_id then if msg == "invalid request" then io.write("Invalid request\n") - return + return false elseif msg == "user not found" then io.write("User not found\n") - return + return false elseif msg == "invalid token" then io.write("Invalid token\n") - return + return false elseif msg == "invalid group" then io.write("Invalid group\n") - return + return false elseif msg == "ok" then return true else