Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("---------------------------------------------")
- print("Username")
- print("---------------------------------------------")
- username = read()
- auser = "???"
- apass = "???"
- j = 0
- k = 0
- if fs.exists( "user" ) then
- local file = io.open( "user", "r" )
- local sLine = file:read()
- while j == 0 do
- auser = SLine
- j = 1
- file:close()
- end
- if fs.exists( "pass" ) then
- local files = io.open( "pass", "r" )
- local sLine = files:read()
- while k == 0 do
- auser = SLine
- k = 1
- end
- files:close()
- end
- username = read()
- if username == auser then
- print("---------------------------------------------")
- print("Password")
- print("---------------------------------------------")
- password = read()
- if password == apass then
- print("---------------------------------------------")
- print("Welcome" ..auser)
- print("---------------------------------------------")
- end
- end
Add Comment
Please, Sign In to add comment