.
This commit is contained in:
parent
93d9a960b3
commit
4aecdcec3b
@ -11,7 +11,7 @@ end
|
||||
local function createPwHash()
|
||||
local inputConfirmed = false
|
||||
while not inputConfirmed do
|
||||
--basic.clearDisplay()
|
||||
basic.clearDisplay()
|
||||
write("Create a new password: ")
|
||||
local input = read("*")
|
||||
pwHash = hash.digestStr(input .. os.getComputerID())
|
||||
@ -19,12 +19,7 @@ local function createPwHash()
|
||||
write("Confirm new password: ")
|
||||
local input2 = read("*")
|
||||
local input2Hash = hash.digestStr(input2 .. os.getComputerID())
|
||||
print(pwHash)
|
||||
print(input2Hash)
|
||||
print(input)
|
||||
print(input2)
|
||||
inputConfirmed = pwHash == input2
|
||||
print(inputConfirmed)
|
||||
inputConfirmed = pwHash == input2Hash
|
||||
end
|
||||
return pwHash
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user