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