Naitsab_33

Erweitertes Passwort Programm Lua

Aug 29th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. print("Passwort eingeben!")
  2. print()
  3. write("Benutzername:")
  4. name = io.read()
  5. write("Passwort:")
  6. passwort = io.read()
  7. if name == "<name>" then
  8.     if passwort == <passwort> then
  9.         print("Hallo Benutzer")
  10.         sleep(3)
  11.         shell.run("clear")
  12.         else
  13.             print("Falsches Passwort und/oder Benutzername!")
  14.             shell.run("reboot")
  15.     end
  16. end
Add Comment
Please, Sign In to add comment