diff options
Diffstat (limited to 'lib/users/auth/email-auth.ts')
| -rw-r--r-- | lib/users/auth/email-auth.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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: '', |
