Skip to content

Commit

Permalink
Merge pull request #56 from resum-ai/feat/login
Browse files Browse the repository at this point in the history
fix: login finish api uri 포트 번호 수정
  • Loading branch information
yjoonjang authored Mar 31, 2024
2 parents d597cd5 + 5fd6480 commit d9a0479
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,15 @@ def kakao_callback(request):
# 회원가입, 로그인 로직

data = {"access_token": access_token, "code": code}
logger.warning(f"data: {data}")
# TODO 유저 프로필 이미지 저장하도록

try:
user = CustomUser.objects.get(email=email)
# 유저가 존재하는 경우
logger.warning(f"user: {user}")
logger.warning("유저 존재")
accept = requests.post("http://localhost:8000/accounts/kakao/login/finish/", data=data)
accept = requests.post("http://localhost:80/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}")
Expand All @@ -133,7 +135,7 @@ def kakao_callback(request):
except CustomUser.DoesNotExist:
# 기존에 가입된 유저가 없으면 새로 가입
logger.warning("유저 미존재")
accept = requests.post("http://localhost:8000/accounts/kakao/login/finish/", data=data)
accept = requests.post("http://localhost:80/accounts/kakao/login/finish/", data=data)
logger.warning(f"accept: {accept}")
logger.warning(f"accept.reason: {accept.reason}")
logger.warning(f"accept.request: {accept.request}")
Expand Down

0 comments on commit d9a0479

Please sign in to comment.