From 505f5e3c9a282c82373f646a800dd3d3f5f057b5 Mon Sep 17 00:00:00 2001 From: Ale2610 Date: Tue, 25 Aug 2015 17:57:33 +0200 Subject: [PATCH] Update sms.lua --- src/apps/sms.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/apps/sms.lua b/src/apps/sms.lua index 44d8c5f..ffd9be8 100644 --- a/src/apps/sms.lua +++ b/src/apps/sms.lua @@ -14,10 +14,12 @@ term.clear() term.setCursorPos(1,1) term.setTextColor(colors.black) print("sPhone SMS") -write("Username: ") -local user = read() -write("Password: ") -local pass = read("*") +f = fs.open("/.sPhone/config/username", "r") +local user = f.readLine() +f.close() +f = fs.open("/.sPhone/config/.sIDpw", "r") +local pass = f.readLine() +f.close() local head = "user="..user.."&password="..pass http.request(server.."login.php",head) local update = os.startTimer(0.15)