From 7aaeeee64e17145c55652a84b594f25bd89d29d3 Mon Sep 17 00:00:00 2001 From: Hank-Choi Date: Wed, 30 Oct 2024 17:53:30 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B9=84=EB=B0=80=EB=B2=88=ED=98=B8=20?= =?UTF-8?q?=EC=B4=88=EA=B8=B0=ED=99=94=20api=20=EB=A1=9C=EA=B9=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/user/UserService.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/user/UserService.ts b/src/core/user/UserService.ts index a89cc7b8..4f09032a 100644 --- a/src/core/user/UserService.ts +++ b/src/core/user/UserService.ts @@ -13,6 +13,9 @@ import ErrorCode from "@app/api/enum/ErrorCode"; import TimetableService = require('@app/core/timetable/TimetableService'); import UserRepository = require('@app/core/user/UserRepository'); import CourseBookService = require('@app/core/coursebook/CourseBookService'); +import * as winston from "winston"; + +var logger = winston.loggers.get('default'); export function getVerifiedByEmail(email: string): Promise { return UserRepository.findActiveByVerifiedEmail(email); @@ -197,6 +200,9 @@ export async function verifyResetPasswordCode(user: User, codeSubmitted: string) const verificationValue: RedisVerificationValue = JSON.parse(await RedisUtil.get(key)) if (!verificationValue) { + logger.info(`userid: ${user._id}`) + logger.info(`codesubmitted: ${codeSubmitted}`) + logger.info(`value: ${verificationValue}`) throw new ApiError(409, ErrorCode.RESET_PASSWORD_NO_REQUEST, "비밀번호 재설정을 다시 시도해주세요.") }