From 6aeedb89a62af343717fba314c1c9dcb0e021262 Mon Sep 17 00:00:00 2001 From: Layla Manley Date: Sun, 8 Oct 2023 05:36:08 -0400 Subject: [PATCH] iteration --- lib/auth.lua | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/auth.lua b/lib/auth.lua index a15c683..75a8ee6 100644 --- a/lib/auth.lua +++ b/lib/auth.lua @@ -31,16 +31,7 @@ function check_user_in_group(username, group) if msg == "invalid request" then io.write("Invalid request\n") return false - elseif msg == "user not found" then - io.write("User not found\n") - return false - elseif msg == "invalid token" then - io.write("Invalid token\n") - return false - elseif msg == "invalid group" then - io.write("Invalid group\n") - return false - elseif msg == "ok" then + elseif msg == true then return true else return false