Update sID.lua
This commit is contained in:
parent
87669ad1fc
commit
500c9fd382
1 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ end
|
||||||
local function header()
|
local function header()
|
||||||
clear()
|
clear()
|
||||||
local w, h = term.getSize()
|
local w, h = term.getSize()
|
||||||
paintutils.drawLine(1,1,w,1, colors.blue)
|
paintutils.drawLine(1,1,w,1, colors.red)
|
||||||
term.setTextColor(colors.white)
|
term.setTextColor(colors.white)
|
||||||
term.setCursorPos(1,1)
|
term.setCursorPos(1,1)
|
||||||
write(" "..sPhone.user)
|
write(" "..sPhone.user)
|
||||||
|
@ -65,7 +65,7 @@ local function login()
|
||||||
f.write(name)
|
f.write(name)
|
||||||
f.close()
|
f.close()
|
||||||
f = fs.open("/.sPhone/config/.sIDpw", "w")
|
f = fs.open("/.sPhone/config/.sIDpw", "w")
|
||||||
f.write(base64.encode(pw))
|
f.write(sha256.sha256(pw))
|
||||||
f.close()
|
f.close()
|
||||||
sPhone.name = name
|
sPhone.name = name
|
||||||
end
|
end
|
||||||
|
@ -109,7 +109,7 @@ local function register()
|
||||||
f.write(name)
|
f.write(name)
|
||||||
f.close()
|
f.close()
|
||||||
local pwf = fs.open("/.sPhone/config/.sIDPw", "w")
|
local pwf = fs.open("/.sPhone/config/.sIDPw", "w")
|
||||||
pwf.write(base64.encode(pw))
|
pwf.write(sha256.sha256(pw))
|
||||||
pwf.close()
|
pwf.close()
|
||||||
sPhone.name = name
|
sPhone.name = name
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue