From 5c0a991cac7ce8b001a11cac0011ccd5795d8c0a Mon Sep 17 00:00:00 2001 From: Tibz-Dankan Date: Tue, 13 Aug 2024 19:12:04 +0300 Subject: [PATCH] fix: supply the correct password reset url to the mail --- internal/routes/auth/forgotPassword.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/routes/auth/forgotPassword.go b/internal/routes/auth/forgotPassword.go index 9b193bf..575e1e6 100644 --- a/internal/routes/auth/forgotPassword.go +++ b/internal/routes/auth/forgotPassword.go @@ -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}