Skip to content

Commit ff99ebd

Browse files
committed
change reset token url
1 parent e5e27b7 commit ff99ebd

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

go-backend/controller/forgetPasswordController.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,7 @@ func ProcessForgotPassword(c *fiber.Ctx) error {
5656
}
5757

5858
// encode the token in url (CHANGE THE URL LATER IN PROD)
59-
resetURL := "https://ayushsharma.co.in/reset-pw?" + vals.Encode()
60-
61-
// DELEGATE THIS TO RABBITMQ
62-
// send the mail to the user with the reset_url
63-
// err = util.ForgotPassword(data.Email, resetURL)
64-
// if err != nil {
65-
// log.Println(err)
66-
// c.Status(501)
67-
// return c.JSON(fiber.Map{
68-
// "error in util.ForgotPassword ": err.Error(),
69-
// })
70-
// }
59+
resetURL := "https://gopherblog.ayushsharma.co.in/reset-pw?" + vals.Encode()
7160

7261
err = rabbit.PublishToQueue(data.Email, resetURL)
7362
if err != nil {

0 commit comments

Comments
 (0)