Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Name: AuthMyOS Ver. 1
- --Version: Ver. 1
- --Creator: DennisLol110998
- name1 = "user 1"
- name2 = "user 2"
- name3 = "user 3"
- name4 = "user 4"
- name5 = "user 5"
- pass1 = "pass 1"
- pass2 = "pass 2"
- pass3 = "pass 3"
- pass4 = "pass 4"
- pass5 = "pass 5"
- print "Loading lib"
- sleep(0.2)
- print "Loading GUI"
- sleep(0.5)
- print "Loading data"
- sleep(0.02)
- print "Initializing \"AuthMyOS\""
- sleep(2.5)
- print "AuthMyOS Ver. 1 Initialized"
- sleep(1)
- write "User: "
- u = read()
- if u == name1 then
- write "Password: "
- p = read()
- if p == pass1 then
- print ("Hello "..u.."!")
- sleep(1)
- good = true
- else
- print "Invalid Password!"
- sleep(1)
- print "Ending Session..."
- sleep(2)
- os.shutdown()
- end
- end
- if u == name2 then
- write "Password: "
- p = read()
- if p == pass2 then
- print ("Hello "..u.."!")
- sleep(1)
- good = true
- else
- print "Invalid Password!"
- sleep(1)
- print "Ending Session..."
- sleep(2)
- os.shutdown
- end
- end
- if u == name3 then
- write "Password: "
- p = read()
- if p == pass3 then
- print ("Hello "..u.."!")
- sleep(1)
- good = true
- else
- print "Invalid Password!"
- sleep(1)
- print "Ending Session..."
- sleep(2)
- os.shutdown
- end
- end
- if u == name4 then
- write "Password: "
- p = read()
- if p == pass4 then
- print ("Hello "..u.."!")
- sleep(1)
- good = true
- else
- print "Invalid Password!"
- sleep(1)
- print "Ending Session..."
- sleep(2)
- os.shutdown
- end
- end
- if u == name5 then
- write "Password: "
- p = read()
- if p == pass5 then
- print ("Hello "..u.."!")
- sleep(1)
- good = true
- else
- print "Invalid Password!"
- sleep(1)
- print "Ending Session..."
- sleep(2)
- os.shutdown
- end
- end
- if good == nil then
- print "Incorrect Username!"
- sleep(1)
- print "Ending Session..."
- sleep(2)
- os.shutdown()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement