From 44bdb81a60d3a44ba7e379f3c20fe6d8fb284339 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 7 Jul 2025 08:24:16 +0000
Subject: (대표님) 변경사항 20250707 12시 30분
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/login/login-form.tsx | 23 +++--------------------
 1 file changed, 3 insertions(+), 20 deletions(-)

(limited to 'components/login/login-form.tsx')

diff --git a/components/login/login-form.tsx b/components/login/login-form.tsx
index a71fd15e..99708dd6 100644
--- a/components/login/login-form.tsx
+++ b/components/login/login-form.tsx
@@ -45,7 +45,7 @@ export function LoginForm({
     const [showMfaForm, setShowMfaForm] = useState(false);
     const [mfaToken, setMfaToken] = useState('');
     const [tempAuthKey, setTempAuthKey] = useState('');
-    const [mfaUserId, setMfaUserId] = useState('');
+    const [mfaUserId, setMfaUserId] = useState(null);
     const [mfaUserEmail, setMfaUserEmail] = useState('');
     const [mfaCountdown, setMfaCountdown] = useState(0);
 
@@ -131,7 +131,7 @@ export function LoginForm({
     };
 
     // SMS 토큰 전송 (userId 파라미터 추가)
-    const handleSendSms = async (userIdParam?: string) => {
+    const handleSendSms = async (userIdParam?: number) => {
         const targetUserId = userIdParam || mfaUserId;
         if (!targetUserId || mfaCountdown > 0) return;
 
@@ -379,7 +379,7 @@ export function LoginForm({
         setShowMfaForm(false);
         setMfaToken('');
         setTempAuthKey('');
-        setMfaUserId('');
+        setMfaUserId(null);
         setMfaUserEmail('');
         setMfaCountdown(0);
     };
@@ -564,23 +564,6 @@ export function LoginForm({
                                                     비밀번호를 잊으셨나요?
                                                 </Button>
                                             )}
-
-                                            {/* 테스트용 MFA 화면 버튼 */}
-                                            {process.env.NODE_ENV === 'development' && (
-                                                <Button
-                                                    type="button"
-                                                    variant="link"
-                                                    className="text-green-600 hover:text-green-800 text-sm"
-                                                    onClick={() => {
-                                                        setTempAuthKey('test-temp-key');
-                                                        setMfaUserId('test-user');
-                                                        setMfaUserEmail('test@example.com');
-                                                        setShowMfaForm(true);
-                                                    }}
-                                                >
-                                                    [개발용] MFA 화면 테스트
-                                                </Button>
-                                            )}
                                         </div>
                                     </>
                                 ) : (
-- 
cgit v1.2.3

