Commit 8dfec803 authored by Danny SMc's avatar Danny SMc 🎧

Update uOS

parent 4704fbb5
......@@ -175,8 +175,8 @@ function configWriter(configFile) -- Finished (FirstInstall / Settings)
print(" ")
print(">What is your chosen password?")
write("Password: ")
strPasswordToEncrypt = tostring(read("*"))
strPasswordToConfig = uapi.encrypt(strPasswordToEncrypt, 6)
strPasswordChecksum = tostring(read("*"))
strPasswordToConfig = uapi.checksum(strPasswordChecksum, 1000)
print(" ")
print(">What colour do you wish to make the text?")
write("Text Colour: ")
......@@ -210,11 +210,11 @@ function configWriter(configFile) -- Finished (FirstInstall / Settings)
print(" ")
print(">What is your chosen password?")
write("Password: ")
strPasswordToEncrypt = tostring(read("*"))
if strPasswordToEncrypt == nil then
strPasswordToEncrypt = password
strPasswordChecksum = tostring(read("*"))
if strPasswordChecksum == nil then
strPasswordChecksum = password
else
strPasswordToConfig = uapi.encrypt(strPasswordToEncrypt, 6)
strPasswordToConfig = uapi.encrypt(strPasswordChecksum, 6)
end
print(" ")
print(">What colour do you wish to make the text?")
......@@ -266,7 +266,7 @@ function login() -- Finished
uapi.printC(">> Checking Username and Password <<", 16, false, txtColour, bkgColour)
sleep(1)
if strUserToCheck == username then
strPasswordEncrypted = uapi.encrypt(strPassToCheck, 6)
strPasswordEncrypted = uapi.checksum(strPassToCheck, 1000)
if strPasswordEncrypted == password then
uapi.printC(">> Success, Logging you in, Please Wait <<", 16, false, txtColour, bkgColour)
sleep(2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment