refactor(templates): 移除 jinja2 includes 使用

This commit is contained in:
zhengxinonly
2023-12-22 23:01:45 +08:00
parent 7203bcfecc
commit b5625ecf1f
5 changed files with 20 additions and 36 deletions
+1 -1
View File
@@ -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