diff options
| author | joonhoekim <26rote@gmail.com> | 2025-08-20 05:08:38 +0000 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-08-20 05:08:38 +0000 |
| commit | d78378ecd7ceede1429359f8058c7a99ac34b1b7 (patch) | |
| tree | e13ef07d9911fd001ce0e35139d3e9ba7d75d9f0 /components | |
| parent | 1c653c940fba07fa91db5fff8de22ac95d51c272 (diff) | |
(김준회) 비밀번호 재설정 컴포넌트 lng 처리
Diffstat (limited to 'components')
| -rw-r--r-- | components/login/reset-password.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
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'); |
