summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-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);