From 20a8b68314a6996eadb524136d37a31f4f14772f Mon Sep 17 00:00:00 2001 From: Layla Manley Date: Sun, 8 Oct 2023 04:52:13 -0400 Subject: [PATCH] iteration --- lib/auth.lua | 2 +- packages/auth.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/auth.lua b/lib/auth.lua index 9c4aeb9..4ea0b63 100644 --- a/lib/auth.lua +++ b/lib/auth.lua @@ -80,7 +80,7 @@ function list_user_groups(username) io.write("Invalid token\n") return else - return list_to_string(msg) + return msg end end end diff --git a/packages/auth.lua b/packages/auth.lua index 09112bf..36922b3 100644 --- a/packages/auth.lua +++ b/packages/auth.lua @@ -101,7 +101,7 @@ elseif action == "group" then if subaction == "list" then local result = auth.list_user_groups(settings.get("auth.username")) - io.write("Groups: " .. result .. "\n") + io.write("Groups: " .. auth.list_to_string(result) .. "\n") elseif subaction == "add" then local target_user = args[3] local group = args[4]