summaryrefslogtreecommitdiff
path: root/app
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 /app
parent5fe800c27ff8caabbb0ac64c5dab8062aac43684 (diff)
(김준회) SGIPS 전화번호 정규화 및 로깅 코드 제거
Diffstat (limited to 'app')
-rw-r--r--app/api/auth/send-sms/route.ts13
1 files changed, 1 insertions, 12 deletions
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);