Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def login():
- print("Logging in...")
- time.sleep(1)
- file = open('accounts.txt', 'r')
- while True:
- loginUsername = input("Enter your username: ")
- if loginUsername in open('accounts.txt').read():
- loginPassword = input("Enter your password: ")
- if loginPassword in open('accounts.txt').read():
- print(" ")
- time.sleep(1)
- loggedinmenu()
- break
- else:
- print("That wasn't a correct username.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement