Advertisement
nonoplsno

Untitled

Feb 23rd, 2020
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1.  
  2.  
  3.  
  4. def signup():
  5. global user
  6. user = "admin"
  7. global password
  8. password = "admin"
  9. verified=input("Are you logging in as an admin?")
  10. if verified in ["no", "nope"]:
  11. print("Please create an account")
  12. user=input("Choose your username:")
  13. password=input("Choose your password:")
  14. confirm=input("Confirm your password:")
  15. if password == confirm:
  16. print("Password matches")
  17. else:
  18. while password not in confirm:
  19. print("Password does not match")
  20. close2=input("Press Enter to try confirming the password again")
  21. password=input("Choose your password:")
  22. confirm=input("Confirm your password:")
  23.  
  24. emal = "no"
  25. while "@" not in emal:
  26. emal=input("Enter your email:")
  27.  
  28. continue
  29. else:
  30. print("Thank you for registering,check your email for the verification")
  31. close=input("Press Enter to close the prompt")
  32.  
  33. test()
  34. elif verified in ["yes"]:
  35. test()
  36.  
  37.  
  38. def test():
  39. login = input("username:")
  40. while login != user:
  41. print("Incorrect username")
  42. login = input("username:")
  43. if user == login:
  44. passw1 = input("password:")
  45. while passw1 != password:
  46. print("Incorrect password")
  47. passw1 = input("password:")
  48. if passw1 == password:
  49. print("logged in")
  50. correct = "yes"
  51.  
  52.  
  53.  
  54.  
  55.  
  56. #to run
  57. signup()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement