Advertisement
Ranger1230

auth

Jun 1st, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. function authUser(password)
  2.   local validPassword = false
  3.   local userInput = ""
  4.   while not validPassword do
  5.     userInput = io.read()
  6.     if userInput == password then
  7.       validPassword = true
  8.     end
  9.   end
  10. require("term").clear()
  11. end
  12.  
  13. authUser("Ranger")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement