Skip to content

Commit

Permalink
fix: reset password url
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Mar 24, 2024
1 parent a9ba275 commit 6eed096
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/service/auth/auth.service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package auth
import (
"context"
"fmt"

"github.com/isd-sgcu/johnjud-auth/cfgldr"
"github.com/isd-sgcu/johnjud-auth/internal/constant"
"github.com/isd-sgcu/johnjud-auth/internal/domain/model"
Expand Down Expand Up @@ -182,7 +183,7 @@ func (s *serviceImpl) ForgotPassword(_ context.Context, request *authProto.Forgo
return nil, status.Error(codes.Internal, constant.InternalServerErrorMessage)
}

resetPasswordURL := fmt.Sprintf("%s/reset-password/%s", s.config.ClientURL, resetPasswordToken)
resetPasswordURL := fmt.Sprintf("%s/admin/reset-password/%s", s.config.ClientURL, resetPasswordToken)
emailSubject := constant.ResetPasswordSubject
emailContent := fmt.Sprintf("Please click the following url to reset password %s", resetPasswordURL)
if err := s.emailService.SendEmail(emailSubject, user.Firstname, user.Email, emailContent); err != nil {
Expand Down

0 comments on commit 6eed096

Please sign in to comment.