This commit is contained in:
mahyargdz
2025-07-09 12:34:09 +03:30
parent ac1391f9ce
commit f76bb11921
3 changed files with 4822 additions and 3009 deletions
+5 -5
View File
@@ -418,12 +418,10 @@ class SmsService {
}
}
async sendPasswordResetSMS(mobile, resetUrl, date = new Date()) {
async sendPasswordResetSMS(mobile, resetLink, date = new Date()) {
console.log(date)
const smsData = {
Parameters: [
{ name: 'resetlink', value: `${resetUrl}` },
{ name: 'date', value: `${formatSMSDate(date)}` }
],
Parameters: [{ name: 'resetlink', value: `${resetLink}` }],
Mobile: mobile,
TemplateId: this.PASSWORD_RESET_PATTERN
}
@@ -435,9 +433,11 @@ class SmsService {
'Content-Type': 'application/json'
}
})
console.log(data)
return data
} catch (error) {
console.error('Error in sending Password Reset SMS', error)
console.log(error)
throw error
}
}