This commit is contained in:
parent
a8ee8cde0b
commit
7e16ee97fa
|
@ -284,3 +284,4 @@ async def create_author(user_id: str, slug: str):
|
||||||
new_author = Author(user=user_id, slug=slug)
|
new_author = Author(user=user_id, slug=slug)
|
||||||
session.add(new_author)
|
session.add(new_author)
|
||||||
session.commit()
|
session.commit()
|
||||||
|
print(f"[resolvers.author] created by webhook {new_author.dict()}")
|
||||||
|
|
|
@ -71,7 +71,7 @@ def login_required(f):
|
||||||
context = info.context
|
context = info.context
|
||||||
# print(context)
|
# print(context)
|
||||||
req = context.get("request")
|
req = context.get("request")
|
||||||
print(f"[services.auth] request headers: {req.headers}")
|
print(f"[services.auth] login_required request headers: {req.headers}")
|
||||||
# Performing authentication check
|
# Performing authentication check
|
||||||
is_authenticated, user_id = await check_auth(req)
|
is_authenticated, user_id = await check_auth(req)
|
||||||
if not is_authenticated:
|
if not is_authenticated:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user