TASK-002 Enforce authorization and media boundaries
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ def verify_password(username, password):
|
||||
"""Verify password."""
|
||||
user = (
|
||||
User.query.filter_by(username=username)
|
||||
.filter(User.login_disabled is not True)
|
||||
.filter(User.login_disabled.is_(False))
|
||||
.first()
|
||||
)
|
||||
if user and user.check_password(password):
|
||||
|
||||
Reference in New Issue
Block a user