Advertisement
DennisLol

AuthMyOS Ver. 1

Dec 30th, 2011
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.80 KB | None | 0 0
  1. --Name: AuthMyOS Ver. 1
  2. --Version: Ver. 1
  3. --Creator:  DennisLol110998
  4.  
  5. name1 = "user 1"
  6. name2 = "user 2"
  7. name3 = "user 3"
  8. name4 = "user 4"
  9. name5 = "user 5"
  10. pass1 = "pass 1"
  11. pass2 = "pass 2"
  12. pass3 = "pass 3"
  13. pass4 = "pass 4"
  14. pass5 = "pass 5"
  15.  
  16. print "Loading lib"
  17. sleep(0.2)
  18. print "Loading GUI"
  19. sleep(0.5)
  20. print "Loading data"
  21. sleep(0.02)
  22. print "Initializing \"AuthMyOS\""
  23. sleep(2.5)
  24. print "AuthMyOS Ver. 1 Initialized"
  25. sleep(1)
  26. write "User: "
  27. u = read()
  28.  
  29. if u == name1 then
  30.  write "Password: "
  31.  p = read()
  32.  if p == pass1 then
  33.   print ("Hello "..u.."!")
  34.   sleep(1)
  35.   good = true
  36.  else
  37.   print "Invalid Password!"
  38.   sleep(1)
  39.   print "Ending Session..."
  40.   sleep(2)
  41.   os.shutdown()
  42.  end
  43. end
  44.  
  45. if u == name2 then
  46.  write "Password: "
  47.  p = read()
  48.  if p == pass2 then
  49.   print ("Hello "..u.."!")
  50.   sleep(1)
  51.   good = true
  52.  else
  53.   print "Invalid Password!"
  54.   sleep(1)
  55.   print "Ending Session..."
  56.   sleep(2)
  57.   os.shutdown
  58.  end
  59. end
  60.  
  61. if u == name3 then
  62.  write "Password: "
  63.  p = read()
  64.  if p == pass3 then
  65.   print ("Hello "..u.."!")
  66.   sleep(1)
  67.   good = true
  68.  else
  69.   print "Invalid Password!"
  70.   sleep(1)
  71.   print "Ending Session..."
  72.   sleep(2)
  73.   os.shutdown
  74.  end
  75. end
  76.  
  77. if u == name4 then
  78.  write "Password: "
  79.  p = read()
  80.  if p == pass4 then
  81.   print ("Hello "..u.."!")
  82.   sleep(1)
  83.   good = true
  84.  else
  85.   print "Invalid Password!"
  86.   sleep(1)
  87.   print "Ending Session..."
  88.   sleep(2)
  89.   os.shutdown
  90.  end
  91. end
  92.  
  93. if u == name5 then
  94.  write "Password: "
  95.  p = read()
  96.  if p == pass5 then
  97.   print ("Hello "..u.."!")
  98.   sleep(1)
  99.   good = true
  100.  else
  101.   print "Invalid Password!"
  102.   sleep(1)
  103.   print "Ending Session..."
  104.   sleep(2)
  105.   os.shutdown
  106.  end
  107. end
  108.  
  109. if good == nil then
  110.  print "Incorrect Username!"
  111.  sleep(1)
  112.  print "Ending Session..."
  113.  sleep(2)
  114.  os.shutdown()
  115. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement