summaryrefslogtreecommitdiff
path: root/components/login
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-10-14 18:12:55 +0900
committerjoonhoekim <26rote@gmail.com>2025-10-14 18:12:55 +0900
commit1b038cb6413a6a579c58beb71eca83fa6657c1d4 (patch)
treebb59e1591723c6cf6da54a1dd11fdc19f5a328f3 /components/login
parent5fe800c27ff8caabbb0ac64c5dab8062aac43684 (diff)
(김준회) SGIPS 전화번호 정규화 및 로깅 코드 제거
Diffstat (limited to 'components/login')
-rw-r--r--components/login/login-form.tsx24
1 files changed, 0 insertions, 24 deletions
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);