From d78378ecd7ceede1429359f8058c7a99ac34b1b7 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Wed, 20 Aug 2025 05:08:38 +0000
Subject: (김준회) 비밀번호 재설정 컴포넌트 lng 처리
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/login/reset-password.tsx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'components/login/reset-password.tsx')

diff --git a/components/login/reset-password.tsx b/components/login/reset-password.tsx
index cc09f4fb..3846de79 100644
--- a/components/login/reset-password.tsx
+++ b/components/login/reset-password.tsx
@@ -12,6 +12,7 @@ import SuccessPage from './SuccessPage';
 import { PasswordPolicy } from '@/lib/users/auth/passwordUtil';
 import { PasswordValidationResult, resetPasswordAction, validatePasswordAction } from '@/lib/users/auth/partners-auth';
 import { useTranslation } from '@/i18n/client';
+import { useParams } from 'next/navigation';
 
 interface PasswordRequirement {
   text: string;
@@ -23,10 +24,12 @@ interface Props {
   token: string;
   userId: number;
   passwordPolicy: PasswordPolicy;
-  lng?: string;
 }
 
-export default function ResetPasswordForm({ token, userId, passwordPolicy, lng = 'ko' }: Props) {
+export default function ResetPasswordForm({ token, userId, passwordPolicy }: Props) {
+  const params = useParams() || {};
+  const lng = params.lng as string;
+  
   const { toast } = useToast();
   const { t } = useTranslation(lng, 'login');
   
-- 
cgit v1.2.3

