feat: do log ips
This commit is contained in:
parent
bfa9f9dd79
commit
ff1c51c723
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue