From 1b038cb6413a6a579c58beb71eca83fa6657c1d4 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Tue, 14 Oct 2025 18:12:55 +0900
Subject: (김준회) SGIPS 전화번호 정규화 및 로깅 코드 제거
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/login/login-form.tsx | 24 ------------------------
 1 file changed, 24 deletions(-)

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

diff --git a/components/login/login-form.tsx b/components/login/login-form.tsx
index 2fdf7cce..090f3a70 100644
--- a/components/login/login-form.tsx
+++ b/components/login/login-form.tsx
@@ -21,7 +21,6 @@ import {
 } from "@/components/ui/input-otp"
 import { requestPasswordResetAction } from "@/lib/users/auth/partners-auth";
 import Loading from "../common/loading/loading";
-import { debugLog, debugSuccess, debugProcess } from "@/lib/debug-utils";
 
 type LoginMethod = 'username' | 'sgips';
 
@@ -209,18 +208,6 @@ export function LoginForm() {
         const targetUserId = userIdParam || mfaUserId;
         if (!targetUserId || mfaCountdown > 0) return;
 
-        debugLog('SMS 전송 시작', { 
-            userIdParam, 
-            mfaUserId, 
-            targetUserId, 
-            selectedOtpUser: selectedOtpUser ? {
-                userId: selectedOtpUser.userId,
-                email: selectedOtpUser.email,
-                phone: selectedOtpUser.phone,
-                name: selectedOtpUser.name
-            } : null
-        });
-
         setIsSmsLoading(true);
         try {
             const requestBody: { userId: number; phone?: string; name?: string } = { userId: targetUserId };
@@ -229,9 +216,6 @@ export function LoginForm() {
             if (selectedOtpUser) {
                 requestBody.phone = selectedOtpUser.phone;
                 requestBody.name = selectedOtpUser.name;
-                debugSuccess('S-GIPS 사용자 정보 포함', { phone: selectedOtpUser.phone, name: selectedOtpUser.name });
-            } else {
-                debugLog('일반 사용자 (selectedOtpUser 없음)');
             }
 
             const response = await fetch('/api/auth/send-sms', {
@@ -469,13 +453,6 @@ export function LoginForm() {
     // 선택된 OTP 사용자와 함께 MFA 진행
     const proceedWithSelectedUser = async (user: OtpUser, tempAuthKey: string) => {
         try {
-            debugProcess('선택된 S-GIPS 사용자로 MFA 진행', {
-                userId: user.userId,
-                email: user.email,
-                phone: user.phone,
-                name: user.name,
-                tempAuthKey
-            });
 
             // 사용자 정보를 기반으로 MFA 진행
             setTempAuthKey(tempAuthKey);
@@ -486,7 +463,6 @@ export function LoginForm() {
 
             // 선택된 사용자의 userId를 직접 전달하여 SMS 전송
             setTimeout(() => {
-                debugLog('SMS 전송 타이머 실행 (2000ms 후)', { userId: user.userId });
                 handleSendSms(user.userId);
             }, 2000);
 
-- 
cgit v1.2.3

