From aced2112e6e83cf0618152cbf9a39e415d829c23 Mon Sep 17 00:00:00 2001 From: Ale32bit Date: Fri, 13 Nov 2015 23:22:40 +0100 Subject: [PATCH] Update settings.lua --- src/apps/system/settings.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/system/settings.lua b/src/apps/system/settings.lua index f81eebe..5f37dc8 100644 --- a/src/apps/system/settings.lua +++ b/src/apps/system/settings.lua @@ -52,7 +52,7 @@ local function changePassword() term.setTextColor(colors.black) local password = read("*") term.redirect(sPhone.mainTerm) - local fpw = fs.open("/.sPhone/.password","r") + local fpw = fs.open("/.sPhone/config/.password","r") if sha256.sha256(password) ~= fpw.readLine() then sPhone.wrongPassword = true else @@ -115,7 +115,7 @@ local function changePassword() end end if not sPhone.wrongPassword then - local f = fs.open("/.sPhone/.password","w") + local f = fs.open("/.sPhone/config/.password","w") f.write(sha256.sha256(pwChangeRep)) f.close() end