mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-21 05:39:22 +00:00
Now checks if the service can provide cookies
This commit is contained in:
@@ -17,6 +17,10 @@ class BaseService():
|
||||
|
||||
"""
|
||||
|
||||
settings = { 'require_user': True,
|
||||
'require_password': True,
|
||||
'provide_login': False }
|
||||
|
||||
def add_user(self, username, password):
|
||||
""" Add a user """
|
||||
pass
|
||||
@@ -36,3 +40,7 @@ class BaseService():
|
||||
def check_user(self, username):
|
||||
""" Check if the username exists """
|
||||
pass
|
||||
|
||||
def login(username):
|
||||
""" Login the user and provide cookies back """
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user