Skip to content

Commit

Permalink
Merge pull request #47 from resum-ai/feat/login
Browse files Browse the repository at this point in the history
accept 관련 log 추가
  • Loading branch information
yjoonjang authored Mar 28, 2024
2 parents a94175e + 58af1a8 commit 4336ee5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ def kakao_callback(request):
try:
user = CustomUser.objects.get(email=email)
# 유저가 존재하는 경우
logger.warning("유저 존재")
accept = requests.post(f"{BASE_URL}accounts/kakao/login/finish/", data=data)
logger.warning(f"accept: {accept}")
logger.warning(f"accept.reason: {accept.reason}")
logger.warning(f"accept.history: {accept.history}")
accept_status = accept.status_code
logger.warning(accept_status)

Expand All @@ -125,8 +129,12 @@ def kakao_callback(request):

except CustomUser.DoesNotExist:
# 기존에 가입된 유저가 없으면 새로 가입
logger.warning("유저 미존재")
# accept = finish_login(data)
accept = requests.post(f"{BASE_URL}accounts/kakao/login/finish/", data=data)
logger.warning(f"accept: {accept}")
logger.warning(f"accept.reason: {accept.reason}")
logger.warning(f"accept.history: {accept.history}")
accept_status = accept.status_code
logger.warning(accept_status)
if accept_status != 200:
Expand Down

0 comments on commit 4336ee5

Please sign in to comment.