From ff1c51c7232b586a25f7eddaf32476b642b496cb Mon Sep 17 00:00:00 2001 From: "Urko." Date: Thu, 22 Feb 2024 19:10:27 +0100 Subject: [PATCH] feat: do log ips --- internal/api/handler/prosody_hdl.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/api/handler/prosody_hdl.go b/internal/api/handler/prosody_hdl.go index 84f39dd..f8fd86c 100644 --- a/internal/api/handler/prosody_hdl.go +++ b/internal/api/handler/prosody_hdl.go @@ -33,6 +33,7 @@ func (handler ProsodyHandler) Post(c *fiber.Ctx) error { return RenderError(c, fmt.Errorf(" c.BodyParser(&req): %w", err), defaultErrMessage) } log.Println("request ip", c.IP()) + log.Println("c.IPs()", c.IPs()) req.CurrentPassword = c.FormValue("current_password") req.NewPassword = c.FormValue("new_password") if err := handler.prosodyService.ChangePassword(req.User, req.CurrentPassword, req.NewPassword); err != nil {