Update sID.lua

This commit is contained in:
Ale2610 2015-08-29 18:47:51 +02:00
parent 5cdfc0f288
commit 3127b95378

View file

@ -67,6 +67,7 @@ local function login()
f = fs.open("/.sPhone/config/.sIDpw", "w") f = fs.open("/.sPhone/config/.sIDpw", "w")
f.write(base64.encode(pw)) f.write(base64.encode(pw))
f.close() f.close()
sPhone.name = name
end end
end end
@ -96,6 +97,7 @@ local function register()
else else
print(" Wrong Password") print(" Wrong Password")
sleep(1) sleep(1)
term.clearLine()
end end
end end
local rServer = http.post("http://sertex.esy.es/register.php", "user="..name.."&password="..pw).readAll() local rServer = http.post("http://sertex.esy.es/register.php", "user="..name.."&password="..pw).readAll()
@ -109,6 +111,7 @@ local function register()
local pwf = fs.open("/.sPhone/config/.sIDPw", "w") local pwf = fs.open("/.sPhone/config/.sIDPw", "w")
pwf.write(base64.encode(pw)) pwf.write(base64.encode(pw))
pwf.close() pwf.close()
sPhone.name = name
end end
end end