modified basic_auth.check_login to check that the user has a pw_hash first
This commit is contained in:
@@ -28,6 +28,7 @@ def setup_plugin():
|
|||||||
|
|
||||||
|
|
||||||
def check_login(user, password):
|
def check_login(user, password):
|
||||||
|
if user.pw_hash:
|
||||||
result = auth_lib.bcrypt_check_password(password, user.pw_hash)
|
result = auth_lib.bcrypt_check_password(password, user.pw_hash)
|
||||||
if result:
|
if result:
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user