Skip to content

Commit

Permalink
Seperate template for OTP message
Browse files Browse the repository at this point in the history
  • Loading branch information
Kantas2601 committed Dec 23, 2024
1 parent 595b2b5 commit 56f841c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public void setMACourseCompletionDao(MACourseCompletionDao maCourseCompletionDao


private String sms_template_id = getProperty("sms.templateId.default");
private String sms_otp_template_id = getProperty("sms.otp.templateId.default");
private String sms_entity_id = getProperty("sms.entityId.default");
private String sms_telemarketer_id = getProperty("sms.telemarketerId.default");
private String senderId = getProperty("senderid");
Expand Down Expand Up @@ -209,7 +210,7 @@ public String buildOTPSMS(MACourseFirstCompletion maCourseFirstCompletion, Strin
.replace("<senderId>", senderId)
.replace("<messageContent>", messageContent)
.replace("<notificationUrl>", callbackEndpoint)
.replace("<smsTemplateId>", sms_template_id)
.replace("<smsTemplateId>", sms_otp_template_id)
.replace("<smsEntityId>", sms_entity_id)
.replace("<smsTelemarketerId>", sms_telemarketer_id)
.replace("<correlationId>", DateTime.now().toString())
Expand Down
1 change: 1 addition & 0 deletions NMSReportingSuite/src/main/resources/sms.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ sms.authentication.key=don'tsaythemagicword
sms.templateId.default=1007163065348946395
sms.entityId.default=1301159100860122510
sms.telemarketerId.default=1001096933494158
sms.otp.templateId.default=1007689146828763356
## Asha Specific sms properties ##

#sms.asha.default.message=You can generate your Course Completion Certificate by clicking here: <CertificateLink>
Expand Down

0 comments on commit 56f841c

Please sign in to comment.