Skip to content

Commit

Permalink
Merge pull request #130 from Tibz-Dankan/integrate/mail-jet
Browse files Browse the repository at this point in the history
fix: supply the correct password reset url to the mail
  • Loading branch information
Tibz-Dankan authored Aug 13, 2024
2 parents e0d74cf + 5c0a991 commit 14554a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/routes/auth/forgotPassword.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ func forgotPassword(w http.ResponseWriter, r *http.Request) {
return
}

originURL := services.GetRequestOrigin(r)

resetURL := originURL + "/auth/reset-password/" + resetToken
// resetURL := "http://localhost:3000/auth/reset-password/" + resetToken
resetURL := "https://appcrons.netlify.app/auth/reset-password/" + resetToken
log.Println("Password resetURL ==> ", resetURL)

email := services.Email{Recipient: user.Email}
Expand Down

0 comments on commit 14554a9

Please sign in to comment.