modified check_login function to return None instead of False to be able to have multiple plugins check_login
This commit is contained in:
@@ -29,7 +29,10 @@ def setup_plugin():
|
||||
|
||||
|
||||
def check_login(user, password):
|
||||
return auth_tools.bcrypt_check_password(password, user.pw_hash)
|
||||
result = auth_tools.bcrypt_check_password(password, user.pw_hash)
|
||||
if result:
|
||||
return result
|
||||
return None
|
||||
|
||||
|
||||
def get_user(login_form):
|
||||
|
||||
Reference in New Issue
Block a user