updates for environment handling changes

This commit is contained in:
kepler155c@gmail.com
2020-05-11 17:26:43 -06:00
parent 759e4e2b95
commit ad32dcc2df
17 changed files with 200 additions and 149 deletions

View File

@@ -16,15 +16,15 @@ term.setCursorPos(1, 1)
term.clear()
repeat
local s, m = pcall(function()
local password = Terminal.readPassword('Enter password: ')
local s, m = pcall(function()
local password = Terminal.readPassword('Enter password: ')
if password and Security.verifyPassword(SHA.compute(password)) then
return true
end
error('Invalid password')
end)
if not s and m then
_G.printError(m)
end
if password and Security.verifyPassword(SHA.compute(password)) then
return true
end
error('Invalid password')
end)
if not s and m then
_G.printError(m)
end
until s