Created login functinality
This commit is contained in:
@@ -1,25 +1,15 @@
|
||||
from abc import ABC, abstractmethod
|
||||
from abc import ABC
|
||||
|
||||
class User(ABC):
|
||||
""" Functional Class constructor to initialise all properties in the base object
|
||||
with a value """
|
||||
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):
|
||||
self.id = id
|
||||
self.username = username
|
||||
self.email = email
|
||||
self.password = password
|
||||
self.firstName = firstname
|
||||
self.lastName = lastname
|
||||
self.email = email
|
||||
self.phone = phone
|
||||
self.password = password
|
||||
self.role= role
|
||||
|
||||
|
||||
@abstractmethod
|
||||
def login(self):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def signup(self):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user