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 --- app/api/auth/send-sms/route.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'app') diff --git a/app/api/auth/send-sms/route.ts b/app/api/auth/send-sms/route.ts index 707741dc..53c8ab2d 100644 --- a/app/api/auth/send-sms/route.ts +++ b/app/api/auth/send-sms/route.ts @@ -4,7 +4,7 @@ import { NextRequest, NextResponse } from 'next/server'; import { z } from 'zod'; import { getUserById } from '@/lib/users/repository'; import { generateAndSendSmsToken } from '@/lib/users/auth/passwordUtil'; -import { debugLog, debugSuccess, debugError } from '@/lib/debug-utils'; +import { debugError } from '@/lib/debug-utils'; const sendSmsSchema = z.object({ userId: z.number(), @@ -16,11 +16,6 @@ export async function POST(request: NextRequest) { const body = await request.json(); const { userId } = sendSmsSchema.parse(body); - debugLog('SMS 전송 요청', { - userId, - receivedPhone: body.phone, - receivedName: body.name - }); // 본인 확인 if (!userId) { @@ -40,12 +35,6 @@ export async function POST(request: NextRequest) { ); } - debugSuccess('DB에서 조회된 사용자 정보', { - userId: user.id, - email: user.email, - phone: user.phone, - name: user.name - }); // SMS 전송 const result = await generateAndSendSmsToken(Number(userId), user.phone); -- cgit v1.2.3