Update enaklo
This commit is contained in:
parent
f0a7c6352f
commit
f98200f76b
@ -208,23 +208,23 @@ func (s *memberSvc) sendRegistrationOTP(
|
|||||||
ctx mycontext.Context,
|
ctx mycontext.Context,
|
||||||
registration *entity.MemberRegistration,
|
registration *entity.MemberRegistration,
|
||||||
) error {
|
) error {
|
||||||
//emailData := map[string]interface{}{
|
emailData := map[string]interface{}{
|
||||||
// "UserName": registration.Name,
|
"UserName": registration.Name,
|
||||||
// "OTPCode": registration.OTP,
|
"OTPCode": registration.OTP,
|
||||||
//}
|
}
|
||||||
|
|
||||||
//err := s.notification.SendEmailTransactional(ctx, entity.SendEmailNotificationParam{
|
err := s.notification.SendEmailTransactional(ctx, entity.SendEmailNotificationParam{
|
||||||
// Sender: "noreply@enaklo.co.id",
|
Sender: "noreply@enaklo.co.id",
|
||||||
// Recipient: registration.Email,
|
Recipient: registration.Email,
|
||||||
// Subject: "Enaklo - Registration Verification Code",
|
Subject: "Enaklo - Registration Verification Code",
|
||||||
// TemplateName: "member_registration_otp",
|
TemplateName: "member_registration_otp",
|
||||||
// TemplatePath: "templates/member_registration_otp.html",
|
TemplatePath: "templates/member_registration_otp.html",
|
||||||
// Data: emailData,
|
Data: emailData,
|
||||||
//})
|
})
|
||||||
//
|
|
||||||
//if err != nil {
|
if err != nil {
|
||||||
// return err
|
return err
|
||||||
//}
|
}
|
||||||
|
|
||||||
//if registration.Phone != "" {
|
//if registration.Phone != "" {
|
||||||
// smsMessage := fmt.Sprintf("Your Enaklo registration code is: %s. Please provide this code to our staff to complete your registration.", registration.OTP)
|
// smsMessage := fmt.Sprintf("Your Enaklo registration code is: %s. Please provide this code to our staff to complete your registration.", registration.OTP)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user