modified check_login function to return None instead of False to be able to have multiple plugins check_login
This commit is contained in:
@@ -17,7 +17,10 @@ from mediagoblin.tools.pluginapi import hook_handle
|
||||
|
||||
|
||||
def check_login(user, password):
|
||||
return hook_handle("auth_check_login", user, password)
|
||||
result = hook_handle("auth_check_login", user, password)
|
||||
if result:
|
||||
return result
|
||||
return False
|
||||
|
||||
|
||||
def get_user(*args):
|
||||
|
||||
Reference in New Issue
Block a user