Commit 4aa3fcd6 authored by crazywoola's avatar crazywoola

chore: rename site code to app id

parent 7dbe5c1e
......@@ -11,9 +11,9 @@ from libs.passport import PassportService
class PassportResource(Resource):
"""Base resource for passport."""
def get(self):
app_id = request.headers.get('X-Site-Code')
app_id = request.headers.get('X-App-Id')
if app_id is None:
raise Unauthorized('X-Site-Code header is missing.')
raise Unauthorized('X-App-Id header is missing.')
# get site from db and check if it is normal
site = db.session.query(Site).filter(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment