Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setBackgroundColor(colors.white)
- term.clear()
- term.setCursorPos(17,10)
- term.setTextColor(colors.red)
- print"Username:"
- term.setCursorPos(17,11)
- print"Password:"
- term.setCursorPos(26,10)
- term.setTextColor(colors.black)
- username=read()
- term.setCursorPos(26,11)
- password=read("*")
- file=fs.open("users/"..name,"r")
- local pass=file.readLine()
- if password==pass then
- print("Loged in as " ..name)
- else
- print"Incorret password"
- end
Add Comment
Please, Sign In to add comment