Posted 23 June 2012 - 07:27 PM
Im trying to make a multi-user login here is what i have:
It will be in this code:
if usernameinput = username or if usernameinput = username 2 then
it doesn't work…can someone help?It will be in this code:
term.setCursorPos(3,3)
print("This is the Login page. Default settings are;")
term.setCursorPos(3,4)
print("username: newuser")
term.setCursorPos(3,5)
print("password: pass")
term.setCursorPos(3,7)
write("username: ")
usernameinput = read()
term.setCursorPos(49,7)
print("O")
term.setCursorPos(3,8)
write("password: ")
passwordinput = read("*")
term.setCursorPos(49,8)
print("O")
filereader = fs.open("password", "r")
password = filereader.readLine()
filereader.close()
fileread = fs.open("username", "r")
username = fileread.readLine()
fileread.close()
if passwordinput == password and usernameinput == username then