Created login functinality

This commit is contained in:
2024-01-02 22:22:14 +00:00
parent b26bd1a228
commit e0b04d13f6
9 changed files with 89 additions and 79 deletions

View File

@@ -6,15 +6,9 @@ class Customer(User):
No additional properties are assigned to the customer
'''
def __init__(self, id: int, username: str, email: str, firstname: str,
lastname: str, phone: str, password: str, role: str):
def __init__(self, id: int, username: str, password: str, firstname: str,
lastname: str, email: str, phone: str, role: str):
super().__init__(
id, username, email, firstname, lastname, phone, password, role
id, username, password, firstname, lastname, email, phone, role
)
def login(self):
print("Logging in as Customer")
def signup(self):
print("Signing up as Customer")