Signup page now populates database correctly

This commit is contained in:
2024-01-01 23:13:09 +00:00
parent efdd918a9f
commit b26bd1a228
3 changed files with 29 additions and 16 deletions

View File

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