refactor(templates): 移除 jinja2 includes 使用
This commit is contained in:
@@ -14,7 +14,7 @@ def user_identity_lookup(user):
|
||||
@jwt.user_lookup_loader
|
||||
def user_lookup_callback(_jwt_header, jwt_data):
|
||||
identity = jwt_data["sub"]
|
||||
return UserORM.query.filter_by(id=identity).one_or_none()
|
||||
return UserORM.query.filter(UserORM.id == identity).one_or_none()
|
||||
|
||||
|
||||
@jwt.expired_token_loader
|
||||
|
||||
Reference in New Issue
Block a user