From ca1af05b1ee37ef4ace3320d060929dc3e5deb35 Mon Sep 17 00:00:00 2001 From: Layla Manley Date: Sun, 8 Oct 2023 02:55:56 -0400 Subject: [PATCH] iteration --- auth.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/auth.lua b/auth.lua index 7492532..9d93980 100644 --- a/auth.lua +++ b/auth.lua @@ -84,6 +84,13 @@ if action == "login" then return end +if action == "logout" then + settings.set("auth.token", "") + settings.save() + io.write("Logged out\n") + return +end + if action == "register" then io.write("Username: ") local username = io.read()