Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- username pass 1
- usereman ssap 2
- nameuser psap 1
- def login():
- print("nYou're in login section")
- username = input("Username: ")
- password = input("Password: ")
- for line in open("users.txt", "r").readlines():
- login_info = line.split()
- if username == login_info[0] and password == login_info[1]:
- if login_info[2] == 1:
- print("Dear customer, I'll take you to the marketplace.")
- return True
- elif login_info[2] == 2:
- print("Welcome manager!")
- return True
- else:
- print("Authority level is other than 1 or 2. Fix it!")
- welcome()
Add Comment
Please, Sign In to add comment