.
This commit is contained in:
parent
7a56ac45df
commit
f51946ac78
@ -8,6 +8,13 @@ local function setConfig()
|
||||
basic.writeToFile("/brulijam/config/systemlock.config", textutils.serialize(config))
|
||||
end
|
||||
|
||||
local function createPwHash()
|
||||
write("Create a new password : ")
|
||||
local input = read("*")
|
||||
pwHash = hash.digestStr(input .. os.getComputerID())
|
||||
return pwHash
|
||||
end
|
||||
|
||||
local function getConfig()
|
||||
if not fs.exists "/brulijam/config/systemlock.config" then
|
||||
config["locked"] = true
|
||||
@ -21,12 +28,6 @@ local function getConfig()
|
||||
return config
|
||||
end
|
||||
|
||||
local function createPwHash()
|
||||
write("Create a new password : ")
|
||||
local input = read("*")
|
||||
pwHash = hash.digestStr(input .. os.getComputerID())
|
||||
return pwHash
|
||||
end
|
||||
|
||||
local function inputTimeout()
|
||||
sleep(10)
|
||||
|
Loading…
Reference in New Issue
Block a user