From 3080b94640cbe6f45c2b5b983ae25ddcfed55634 Mon Sep 17 00:00:00 2001 From: Urko Date: Fri, 7 Jul 2023 23:46:25 +0200 Subject: [PATCH] add logs --- internal/api/handler/prosody_hdl.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/api/handler/prosody_hdl.go b/internal/api/handler/prosody_hdl.go index 76102c6..dfc0436 100644 --- a/internal/api/handler/prosody_hdl.go +++ b/internal/api/handler/prosody_hdl.go @@ -2,6 +2,7 @@ package handler import ( "fmt" + "log" "gitea.urkob.com/urko/prosody-password/internal/services/fail2ban" "gitea.urkob.com/urko/prosody-password/internal/services/prosody" @@ -31,7 +32,7 @@ func (handler ProsodyHandler) Post(c *fiber.Ctx) error { if err := c.BodyParser(&req); err != nil { return RenderError(c, fmt.Errorf("id is empty"), defaultErrMessage) } - + log.Println("req.User, req.CurrentPassword, req.NewPassword", req.User, req.CurrentPassword, req.NewPassword) if err := handler.prosodyService.ChangePassword(req.User, req.CurrentPassword, req.NewPassword); err != nil { for _, ip := range c.IPs() { handler.fail2banSrv.FailedAttempt(ip)