Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Login:
- welcome = input("Hello and welcome to my site!. Do you have an account on our site? 'Yes' or 'No'")
- run = True
- authchentitaction = True
- def login_page(self, welcome, authchentitaction=None):
- if welcome == "Yes":
- print("Great! Proceed to log in")
- email_acc = input("Please type in your email: ")
- passwords_acc = input("Please type in your password: ")
- if email_acc and passwords_acc == authchentitaction:
- pass
- elif welcome == "No":
- make_acc = input("Would you like to make one.")
- if make_acc == "Yes":
- name_acc = input("Please enter your name: ")
- email_acc = input("Please enter your email: ")
- passwords_acc = input("Please enter your password:")
- repassword_acc = input("Please type in your password again: ")
- if passwords_acc == repassword_acc:
- return True
- elif make_acc == "No":
- print("That is totally fine! Goodbye and have a great day.")
- else:
- print("Incorrect user input please try again.")
- while run:
- login_page()
- if welcome == "No":
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement