Created login functinality
This commit is contained in:
@@ -2,24 +2,12 @@ from .user import User
|
||||
|
||||
class Admin(User):
|
||||
'''
|
||||
Class constructor to instatiate an Admin object
|
||||
Class constructor to instatiate an admin object
|
||||
|
||||
No additional properties are assigned to the admin
|
||||
'''
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.store = ""
|
||||
|
||||
def login(self):
|
||||
print("Logging in as Admin")
|
||||
|
||||
def signup(self):
|
||||
print("Signing up as Admin")
|
||||
|
||||
def createProduct():
|
||||
pass
|
||||
|
||||
def deleteProduct():
|
||||
pass
|
||||
|
||||
def updateProduct():
|
||||
pass
|
||||
|
||||
def __init__(self, id: int, username: str, password: str, firstname: str,
|
||||
lastname: str, email: str, phone: str, role: str):
|
||||
super().__init__(
|
||||
id, username, password, firstname, lastname, email, phone, role
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user