From bece6eacca6fb9a678b4d8a475110fa31b99503f Mon Sep 17 00:00:00 2001 From: Ale2610 Date: Sat, 29 Aug 2015 18:49:00 +0200 Subject: [PATCH] Update settings.lua --- src/apps/system/settings.lua | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/apps/system/settings.lua b/src/apps/system/settings.lua index 3dc9b45..617ade8 100644 --- a/src/apps/system/settings.lua +++ b/src/apps/system/settings.lua @@ -1,7 +1,6 @@ local menu = { "Update", - "Change username", - "Change password", + "Change PIN", } local function clear() @@ -23,18 +22,6 @@ local function header() term.setTextColor(colors.black) end -local function changeUsername() - header() - term.setCursorPos(2,3) - write("New Username: ") - local newUsername = read() - local f = fs.open("/.sPhone/config/username","w") - f.write(newUsername) - f.close() - sPhone.user = newUsername - print(" All Set!") -end - local function changePassword() while true do term.clear() @@ -183,8 +170,6 @@ local function redraw() elseif id == 1 then setfenv(loadstring(http.get("https://raw.githubusercontent.com/Sertex-Team/sPhone/master/src/installer.lua").readAll()),getfenv())() elseif id == 2 then - changeUsername() - elseif id == 3 then changePassword() end end