Posted 28 June 2012 - 06:23 AM
This is a simple login code that can be implemented onto a machine with a startup file to make you have to log in to the machine.
-TheWoWClown
print (" Hello Employee. Please enter username.")
username = read()
if username == "---------" then -- Enter username here.
print (" Thank you! Please enter password.")
else
print (" Sorry, access denied, please try again.")
sleep(5)
os.shutdown() -- Shuts down system if username is incorrect.
end
password = read()
if password == "-----------" then -- Enter password here.
print ("Access granted. Have a nice day!")
else
print ("Access denied. Please try again.")
sleep(5)
os.shutdown()-- Shuts down system if password is incorrect.
end
Hope you like it. Also, I am new to Lua, so it might not be super efficient. Thanks-TheWoWClown