.
This commit is contained in:
parent
0f42fc1a6e
commit
32a4b39c04
@ -9,9 +9,15 @@ local function setConfig()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function createPwHash()
|
local function createPwHash()
|
||||||
write("Create a new password : ")
|
local inputConfirmed = false
|
||||||
local input = read("*")
|
while not inputConfirmed do
|
||||||
pwHash = hash.digestStr(input .. os.getComputerID())
|
write("Create a new password: ")
|
||||||
|
local input = read("*")
|
||||||
|
pwHash = hash.digestStr(input .. os.getComputerID())
|
||||||
|
|
||||||
|
write("Confirm new password: ")
|
||||||
|
local inputConfirmed = pwHash == hash.digestStr(read("*") .. os.getComputerID())
|
||||||
|
end
|
||||||
return pwHash
|
return pwHash
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user