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(