Update api/controllers/web/passport.py

Co-authored-by: -LAN- <laipz8200@outlook.com>
pull/22801/head
Asuka Minato 7 months ago committed by -LAN-
parent 582fd02596
commit 9e6e5aa0c9
No known key found for this signature in database
GPG Key ID: 6BA0D108DED011FF

@ -43,7 +43,7 @@ class PassportResource(Resource):
raise WebAppAuthRequiredError()
# get site from db and check if it is normal
site = db.session.scalar(select(Site).filter(Site.code == app_code, Site.status == "normal"))
site = db.session.scalar(select(Site).where(Site.code == app_code, Site.status == "normal"))
if not site:
raise NotFound()
# get app from db and check if it is normal and enable_site

Loading…
Cancel
Save