So I have a login system in python that gets the accounts from a list
username = raw_input("Username: ")
password = raw_input("Password: ")
login = open("login.txt", "r")
for line in login:
if line.split(":")[0] == username and line.split(":")[1] == password:
print("It Works!")
else:
print("Failed")
But, it only gets the username and password from line 1 it wont go any higher. So how can I make this work? Format the accounts go in:
admin:password
nimda:drowssap