tweaks + new screen savers
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user