From 50eab5ac5f04352bb86eb1b9e98b1d50521b348a Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Tue, 14 Oct 2025 07:35:15 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20=EB=B9=84=EB=B0=80=EB=B2=88?= =?UTF-8?q?=ED=98=B8=20=ED=95=B4=EC=8B=B1=EC=9D=84=20bcrypt=EB=A1=9C=20?= =?UTF-8?q?=EC=A7=81=EC=A0=91=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - AuthService.hash_password() 메서드가 없어서 직접 bcrypt 사용 - bcrypt.hashpw()로 비밀번호 해싱 - 회원가입 기능 정상 작동 --- backend/app/auth/signup_routes.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/app/auth/signup_routes.py b/backend/app/auth/signup_routes.py index fb8ef30..166f418 100644 --- a/backend/app/auth/signup_routes.py +++ b/backend/app/auth/signup_routes.py @@ -66,8 +66,11 @@ async def signup_request( ) # 비밀번호 해싱 - auth_service = AuthService(db) - hashed_password = auth_service.hash_password(signup_data.password) + import bcrypt + hashed_password = bcrypt.hashpw( + signup_data.password.encode('utf-8'), + bcrypt.gensalt() + ).decode('utf-8') # 승인 대기 상태로 사용자 생성 new_user = user_repo.create_user(