feat: do log ips

This commit is contained in:
Urko. 2024-02-22 19:10:27 +01:00
parent bfa9f9dd79
commit ff1c51c723
1 changed files with 1 additions and 0 deletions

View File

@ -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 {