summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-09-10 01:26:07 +0000
committerjoonhoekim <26rote@gmail.com>2025-09-10 01:26:07 +0000
commitd40ae7f3898f979ab0d9aafc4c128fe23cc9ea4b (patch)
treef9640a211537bdcdbc6f51324e481ac30eab3b9b
parent6459d90482efa57fed6f43204c20fdfbe33ffbd8 (diff)
Revert "(김준회) 국제번호 발송시 수신처에 002 문자열 추가"
This reverts commit 345a1bfaa30b71ffc82828245408663d7edfd0d2.
-rw-r--r--lib/users/auth/passwordUtil.ts10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/users/auth/passwordUtil.ts b/lib/users/auth/passwordUtil.ts
index 0be9a652..7cf101c7 100644
--- a/lib/users/auth/passwordUtil.ts
+++ b/lib/users/auth/passwordUtil.ts
@@ -425,20 +425,12 @@ async function sendSmsMessage(phoneNumber: string, message: string): Promise<boo
if (countryInfo.country) {
console.log(` Country: ${countryInfo.country}`);
}
-
- // 국제 메시지인 경우 수신번호에 002 prefix 추가
- const isInternational = countryInfo.countryCode !== '82'; // 한국이 아닌 경우
- const toNumber = isInternational
- ? `002${countryInfo.countryCode}${countryInfo.nationalNumber}`
- : countryInfo.nationalNumber;
-
- console.log(` Final To Number: ${toNumber} (International: ${isInternational})`);
const requestBody = {
account: account,
type: 'sms',
from: fromNumber,
- to: toNumber,
+ to: countryInfo.nationalNumber,
country: countryInfo.countryCode,
content: {
sms: {