From 39977f68f0da5af565c6cd585036ce95246f7c92 Mon Sep 17 00:00:00 2001 From: Urko Date: Fri, 4 Aug 2023 23:11:07 +0200 Subject: [PATCH] add logs to body --- internal/api/handler/prosody_hdl.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/api/handler/prosody_hdl.go b/internal/api/handler/prosody_hdl.go index 1345c76..7c30a73 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" @@ -27,6 +28,7 @@ type changePasswordReq struct { } func (handler ProsodyHandler) Post(c *fiber.Ctx) error { + log.Println("body", string(c.Body())) req := changePasswordReq{ CurrentPassword: c.FormValue("current_password", ""), NewPassword: c.FormValue("new_password", ""),