Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def signup():
- global user
- user = "admin"
- global password
- password = "admin"
- verified=input("Are you logging in as an admin?")
- if verified in ["no", "nope"]:
- print("Please create an account")
- user=input("Choose your username:")
- password=input("Choose your password:")
- confirm=input("Confirm your password:")
- if password == confirm:
- print("Password matches")
- else:
- while password not in confirm:
- print("Password does not match")
- close2=input("Press Enter to try confirming the password again")
- password=input("Choose your password:")
- confirm=input("Confirm your password:")
- emal = "no"
- while "@" not in emal:
- emal=input("Enter your email:")
- continue
- else:
- print("Thank you for registering,check your email for the verification")
- close=input("Press Enter to close the prompt")
- test()
- elif verified in ["yes"]:
- test()
- def test():
- login = input("username:")
- while login != user:
- print("Incorrect username")
- login = input("username:")
- if user == login:
- passw1 = input("password:")
- while passw1 != password:
- print("Incorrect password")
- passw1 = input("password:")
- if passw1 == password:
- print("logged in")
- correct = "yes"
- #to run
- signup()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement