Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###Aziz###
- class user:
- username = ''
- password = ''
- login = False
- def login(self):
- username = input("Enter Username")
- password = input("Enter Password")
- if username == self.username and password == self.password:
- login = True
- print ("Login Successfully! ^_^")
- else:
- print ("Login Failed! -_-")
- def logout(self):
- login = False
- print("Logged Out Successfully! ~_~")
- def active(self):
- if self.login:
- return = True
- else:
- return = False
- def profile(self):
- if self.active:
- print(self.email,"/n",self.password)
- else:
- ("user not logged in")
- userobject = user()
- userobject.username = "admin"
- userobject.password = "admin123"
- userobject.login()
- rockon = input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement