Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- textutils.slowPrint("Loading", 2)
- textutils.slowPrint("===========================", 10)
- sleep(1)
- textutils.slowPrint("Umbrealla Computer OS", 5)
- textutils.slowPrint("Please Input", 5)
- local valid
- local accounts = {
- ["John"] = "Ada",
- ["Lachie"] = "Test"
- }
- sleep(4)
- term.setCursorPos(1, 6)
- print("Login: ")
- write("> ")
- local input_user = read()
- print("Password: ")
- write("> ")
- local input_pass = read("*")
- for valid_user, valid_pass in pairs(accounts) do
- if (input_user == valid_user and input_pass == valid_pass) then valid = true end
- end
- if valid then
- print("Accessing")
- textutils.slowPrint("=============", 5)
- sleep(1)
- print("Verified!")
- rs.setBundledOutput("back", colours.cyan)
- sleep(5)
- os.reboot()
- else
- print("Accessing")
- textutils.slowPrint("=============", 5)
- print("Login incorrect")
- sleep(2)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement