05/18 Enhanced codes and functionalities 2
This commit is contained in:
+1
-1
@@ -116,7 +116,7 @@ def login():
|
||||
# Columns do not exist yet — migration pending. Skip lockout check.
|
||||
db.session.rollback()
|
||||
|
||||
if not user or not verify_auth_token(auth_hash, user.master_hash):
|
||||
if not user or not verify_auth_token(auth_hash, user.master_hash, user=user):
|
||||
if user:
|
||||
try:
|
||||
user.failed_login_count = (user.failed_login_count or 0) + 1
|
||||
|
||||
Reference in New Issue
Block a user