tweaks + new screen savers

This commit is contained in:
kepler155c@gmail.com
2019-11-02 14:15:23 -06:00
parent 4ce86a9e5a
commit 7423176c52
4 changed files with 8 additions and 9 deletions

View File

@@ -92,7 +92,7 @@ keyboard.addHotkey('control-l', function()
end
end)
kernel.hook({ 'mouse_click', 'mouse_up', 'mouse_drag', 'key_up', 'key' }, function()
kernel.hook({ 'mouse_up', 'mouse_drag', 'key_up', 'mouse_scroll' }, function()
if timer then
os.cancelTimer(timer)
timer = os.startTimer(config.timeout)

View File

@@ -19,11 +19,7 @@ repeat
local s, m = pcall(function()
local password = Terminal.readPassword('Enter password: ')
if not password then
error('Invalid password')
end
if Security.verifyPassword(SHA.compute(password or '')) then
if password and Security.verifyPassword(SHA.compute(password)) then
return true
end
error('Invalid password')