add logs to body

This commit is contained in:
Urko 2023-08-04 23:11:07 +02:00
parent 3c9d40544c
commit 39977f68f0
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package handler
import ( import (
"fmt" "fmt"
"log"
"gitea.urkob.com/urko/prosody-password/internal/services/fail2ban" "gitea.urkob.com/urko/prosody-password/internal/services/fail2ban"
"gitea.urkob.com/urko/prosody-password/internal/services/prosody" "gitea.urkob.com/urko/prosody-password/internal/services/prosody"
@ -27,6 +28,7 @@ type changePasswordReq struct {
} }
func (handler ProsodyHandler) Post(c *fiber.Ctx) error { func (handler ProsodyHandler) Post(c *fiber.Ctx) error {
log.Println("body", string(c.Body()))
req := changePasswordReq{ req := changePasswordReq{
CurrentPassword: c.FormValue("current_password", ""), CurrentPassword: c.FormValue("current_password", ""),
NewPassword: c.FormValue("new_password", ""), NewPassword: c.FormValue("new_password", ""),