Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.27 KB | None | 0 0
  1. class Login:
  2.     welcome = input("Hello and welcome to my site!. Do you have an account on our site? 'Yes' or 'No'")
  3.     run = True
  4.     authchentitaction = True
  5.  
  6.     def login_page(self, welcome, authchentitaction=None):
  7.         if welcome == "Yes":
  8.             print("Great! Proceed to log in")
  9.             email_acc = input("Please type in your email: ")
  10.             passwords_acc = input("Please type in your password: ")
  11.  
  12.             if email_acc and passwords_acc == authchentitaction:
  13.                 pass
  14.  
  15.         elif welcome == "No":
  16.             make_acc = input("Would you like to make one.")
  17.             if make_acc == "Yes":
  18.                 name_acc = input("Please enter your name: ")
  19.                 email_acc = input("Please enter your email: ")
  20.                 passwords_acc = input("Please enter your password:")
  21.                 repassword_acc = input("Please type in your password again: ")
  22.  
  23.                 if passwords_acc == repassword_acc:
  24.                     return True
  25.  
  26.             elif make_acc == "No":
  27.                 print("That is totally fine! Goodbye and have a great day.")
  28.  
  29.         else:
  30.             print("Incorrect user input please try again.")
  31.     while run:
  32.         login_page()
  33.         if welcome == "No":
  34.             break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement