From 5202c4b56d9565c7ac0c2a62255763462cef0d3d Mon Sep 17 00:00:00 2001 From: dujinkim Date: Wed, 29 Oct 2025 01:58:40 +0000 Subject: (임수민) 데이터룸 요청사항 반영 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/users/auth/email-auth.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/users/auth/email-auth.ts') diff --git a/lib/users/auth/email-auth.ts b/lib/users/auth/email-auth.ts index edd4a634..9b87add5 100644 --- a/lib/users/auth/email-auth.ts +++ b/lib/users/auth/email-auth.ts @@ -125,13 +125,15 @@ export async function checkEmailAndStartAuth(email: string): Promise<{ isActive: true, }); + const userLanguage = user.language || 'en'; + // OTP 이메일 전송 await sendEmail({ to: user.email, subject: '로그인 인증번호', template: 'otp', context: { - language: 'ko', + language: userLanguage, name: user.name, otp: otpCode, verificationUrl: '', -- cgit v1.2.3