Update enaklo
This commit is contained in:
parent
f0a7c6352f
commit
f98200f76b
@ -208,23 +208,23 @@ func (s *memberSvc) sendRegistrationOTP(
|
||||
ctx mycontext.Context,
|
||||
registration *entity.MemberRegistration,
|
||||
) error {
|
||||
//emailData := map[string]interface{}{
|
||||
// "UserName": registration.Name,
|
||||
// "OTPCode": registration.OTP,
|
||||
//}
|
||||
emailData := map[string]interface{}{
|
||||
"UserName": registration.Name,
|
||||
"OTPCode": registration.OTP,
|
||||
}
|
||||
|
||||
//err := s.notification.SendEmailTransactional(ctx, entity.SendEmailNotificationParam{
|
||||
// Sender: "noreply@enaklo.co.id",
|
||||
// Recipient: registration.Email,
|
||||
// Subject: "Enaklo - Registration Verification Code",
|
||||
// TemplateName: "member_registration_otp",
|
||||
// TemplatePath: "templates/member_registration_otp.html",
|
||||
// Data: emailData,
|
||||
//})
|
||||
//
|
||||
//if err != nil {
|
||||
// return err
|
||||
//}
|
||||
err := s.notification.SendEmailTransactional(ctx, entity.SendEmailNotificationParam{
|
||||
Sender: "noreply@enaklo.co.id",
|
||||
Recipient: registration.Email,
|
||||
Subject: "Enaklo - Registration Verification Code",
|
||||
TemplateName: "member_registration_otp",
|
||||
TemplatePath: "templates/member_registration_otp.html",
|
||||
Data: emailData,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
//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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user