mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
BaseService is always successful.
This commit is contained in:
@@ -36,23 +36,23 @@ class BaseService():
|
|||||||
|
|
||||||
def check_user(self, username):
|
def check_user(self, username):
|
||||||
""" Check if the username exists """
|
""" Check if the username exists """
|
||||||
pass
|
return False
|
||||||
|
|
||||||
def delete_user(self, uid):
|
def delete_user(self, uid):
|
||||||
""" Delete a user by uid """
|
""" Delete a user by uid """
|
||||||
pass
|
return True
|
||||||
|
|
||||||
def disable_user(self, uid):
|
def disable_user(self, uid):
|
||||||
""" Disable a user by uid """
|
""" Disable a user by uid """
|
||||||
pass
|
return True
|
||||||
|
|
||||||
def enable_user(self, uid, password):
|
def enable_user(self, uid, password):
|
||||||
""" Enable a user by uid """
|
""" Enable a user by uid """
|
||||||
pass
|
return True
|
||||||
|
|
||||||
def reset_password(self, uid, password):
|
def reset_password(self, uid, password):
|
||||||
""" Reset the user's password """
|
""" Reset the user's password """
|
||||||
pass
|
return True
|
||||||
|
|
||||||
def login(uid):
|
def login(uid):
|
||||||
""" Login the user and provide cookies back """
|
""" Login the user and provide cookies back """
|
||||||
|
|||||||
Reference in New Issue
Block a user