Mtdj2

Password protection

Jun 13th, 2012
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. os.pullEvent() = os.pullEventRaw()
  2.  
  3. print "Please type in password: "
  4. r = read("*")
  5. correctpass = "[PASS GOES HERE!] -- Any doubt?
  6. if r == correctpass then
  7. print "Hello user."
  8. else
  9. print "Wrong password, rebooting..."
  10. sleep(2)
  11. os.reboot()
  12. end
  13. --Please PM me if it doesn't work, wrote it directly into Pastebin.
Advertisement
Add Comment
Please, Sign In to add comment