Guest User

Untitled

a guest
Feb 9th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. term.setBackgroundColor(colors.white)
  2. term.clear()
  3. term.setCursorPos(17,10)
  4. term.setTextColor(colors.red)
  5. print"Username:"
  6. term.setCursorPos(17,11)
  7. print"Password:"
  8. term.setCursorPos(26,10)
  9. term.setTextColor(colors.black)
  10. username=read()
  11. term.setCursorPos(26,11)
  12. password=read("*")
  13. file=fs.open("users/"..name,"r")
  14. local pass=file.readLine()
  15. if password==pass then
  16. print("Loged in as " ..name)
  17. else
  18. print"Incorret password"
  19. end
Add Comment
Please, Sign In to add comment