Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def loginSystem():
- # System Welcome Message
- print("Login System Initiated")
- print("Please Have Your Details Ready To Be Entered!")
- # User Enters Their Details
- entUsername = input("Please Enter Your Username: ")
- entPassword = input("Please Enter Your Password: ")
- print("Thank You.")
- print("Details Being Authenticated...")
- # User + Pass Authentication
- file = open("AuthenticatedUsers.txt", "r")
- for line in file:
- username, password = line.split(",")
- if username == entUsername and password == entPassword:
- print("Authenticated User Detected")
- break
- else:
- print("Unauthenticated User Detected!")
- regQuestion = input("Would You Like To Register Now? [Y/N]: ")
- if regQuestion.lower().startswith("y"):
- registerSystem()
- else:
- print("--- Program Terminated ---")
Add Comment
Please, Sign In to add comment