.
This commit is contained in:
parent
32a4b39c04
commit
2f48218363
@ -11,12 +11,14 @@ end
|
|||||||
local function createPwHash()
|
local function createPwHash()
|
||||||
local inputConfirmed = false
|
local inputConfirmed = false
|
||||||
while not inputConfirmed do
|
while not inputConfirmed do
|
||||||
|
basic.clearDisplay()
|
||||||
write("Create a new password: ")
|
write("Create a new password: ")
|
||||||
local input = read("*")
|
local input = read("*")
|
||||||
pwHash = hash.digestStr(input .. os.getComputerID())
|
pwHash = hash.digestStr(input .. os.getComputerID())
|
||||||
|
|
||||||
write("Confirm new password: ")
|
write("Confirm new password: ")
|
||||||
local inputConfirmed = pwHash == hash.digestStr(read("*") .. os.getComputerID())
|
local inputConfirmation = read("*")
|
||||||
|
local inputConfirmed = pwHash == inputConfirmation
|
||||||
end
|
end
|
||||||
return pwHash
|
return pwHash
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user