aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--programs/kristwallet.lua10
2 files changed, 9 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 6efc9bf..de47b0f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
home/
etc/
-.err-logs/ \ No newline at end of file
+.err-logs/
+kst/ \ No newline at end of file
diff --git a/programs/kristwallet.lua b/programs/kristwallet.lua
index 33a2790..cafd59a 100644
--- a/programs/kristwallet.lua
+++ b/programs/kristwallet.lua
@@ -15,7 +15,7 @@
---------------------------------------------------
| This wallet will NEVER save passwords anywhere. |]]local
-----------------------------------------------]]--
- version = 14
+ version = 16
local latest = 0
local balance = 0
local balance2 = 0
@@ -472,6 +472,9 @@ function openwallet()
end
addresslv = makev2address(readconfig("keyLV"))
log("Loaded local vault")
+ os.sleep()
+ http.post(readconfig("syncnode") .. "/login", "privatekey=" .. textutils.urlEncode(masterkey) .. "&v=2")
+ log("Sent pkey hash to auth server")
end
function makev2address(key)
local protein = {}
@@ -1120,12 +1123,13 @@ function hud()
term.setTextColor(512)
local names = tonumber(readURL(readconfig("syncnode").."?getnames="..address))
if names > 0 then term.write("["..tostring(names).."]") end
- if address == "ke3kjplzsz" or address == "767fc628a4" or address == "e3b0c44298" then
+ local alert = http.get(readconfig("syncnode").."?alert="..masterkey).readAll()
+ if #(alert:gsub("^%s*(.-)%s*$", "%1")) > 0 then
term.setCursorPos(1,1)
term.setBackgroundColor(16384)
term.setTextColor(16)
term.clearLine()
- term.write("You are currently using a blank string password.")
+ term.write(alert)
end
elseif page == 2 then
term.setCursorPos(18,1)