Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Stop Termination
- os.pullEvent = os.pullEventRaw
- -- Clear Screen
- term.clear()
- term.setCursorPos(20,8)
- -- Username
- username = "admin"
- -- Password
- password = "admin"
- -- Get User Info
- print("LOGIN")
- term.setCursorPos(11,9)
- write("Username: ")
- user = read()
- term.setCursorPos(11,10)
- write("Password: ")
- pass = read("*")
- -- Verify
- term.setCursorPos(14,11)
- textutils.slowPrint("Verifying...")
- if (user == username) then
- if (pass == pass) then
- term.setCursorPos(13,12)
- print("Logged In!")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- else
- term.setCursorPos(14,12)
- print("Wrong!")
- sleep(10)
- os.reboot()
- end
- else
- term.setCursorPos(14,12)
- print("Wrong!")
- sleep(10)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement