mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
31 lines
640 B
Python
31 lines
640 B
Python
|
|
class BaseService():
|
|
"""
|
|
Base Service class, all service classes should inherit from this
|
|
|
|
"""
|
|
|
|
def add_user(self, username, password):
|
|
""" Add a user """
|
|
pass
|
|
|
|
def set_corp(self, username):
|
|
""" User is in corp, enable extra privs """
|
|
pass
|
|
|
|
def delete_user(self, username):
|
|
""" Delete a user """
|
|
pass
|
|
|
|
def disable_user(self, username):
|
|
""" Disable a user """
|
|
pass
|
|
|
|
def enable_user(self, username):
|
|
""" Enable a user """
|
|
pass
|
|
|
|
def check_user(self, username):
|
|
""" Check if the username exists """
|
|
pass
|