From 8b478952438c04b7ae7cceda28ead2206f0dcfe8 Mon Sep 17 00:00:00 2001 From: Ale2610 Date: Sat, 29 Aug 2015 16:10:47 +0200 Subject: [PATCH] Update sID.lua --- src/apps/system/sID.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/apps/system/sID.lua b/src/apps/system/sID.lua index b269a3f..d07e637 100644 --- a/src/apps/system/sID.lua +++ b/src/apps/system/sID.lua @@ -1,3 +1,7 @@ +local isDown +local menu +local id + if not sPhone then print("This app is for sPhone") return @@ -32,4 +36,17 @@ if isDown ~= "true" then return end +if fs.exists("/.sPhone/config/.sIDpw") then + menu = { + "Logout", + } + _, id = ui.menu("Sertex ID") +else + menu = { + "Login", + "New Account", + } + _, id = ui.menu("Sertex ID") +end + header()