update
This commit is contained in:
@@ -162,7 +162,6 @@ func (s *memberSvc) ResendOTP(
|
||||
) (*entity.ResendOTPResponse, error) {
|
||||
logger.ContextLogger(ctx).Info("resending OTP", zap.String("token", token))
|
||||
|
||||
// Get registration by token
|
||||
registration, err := s.repo.GetRegistrationByToken(ctx, token)
|
||||
if err != nil {
|
||||
logger.ContextLogger(ctx).Error("failed to get registration", zap.Error(err))
|
||||
@@ -211,7 +210,7 @@ func (s *memberSvc) sendRegistrationOTP(
|
||||
Recipient: registration.Email,
|
||||
Subject: "Enaklo - Registration Verification Code",
|
||||
TemplateName: "member_registration_otp",
|
||||
TemplatePath: "/templates/member_registration_otp.html",
|
||||
TemplatePath: "templates/member_registration_otp.html",
|
||||
Data: emailData,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user