Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1, 1)
- username = {"JWat"}
- password = {"2241"}
- write("Username: ")
- user = read()
- write("Password: ") -- This prevents people from reading the password as you put it in
- for i=1, #username do
- if user == username and pass == password then
- access = true
- end
- end
- if access == true then
- print("Logging in...")
- sleep(1)
- print("Welcome "..user)
- else
- print("Incorrect login.")
- sleep(2)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement