fix remove fail2ban
This commit is contained in:
@@ -33,9 +33,9 @@ func (handler ProsodyHandler) Post(c *fiber.Ctx) error {
|
||||
User: c.FormValue("user", ""),
|
||||
}
|
||||
if err := handler.prosodyService.ChangePassword(req.User, req.CurrentPassword, req.NewPassword); err != nil {
|
||||
for _, ip := range c.IPs() {
|
||||
handler.fail2banSrv.FailedAttempt(ip)
|
||||
}
|
||||
// for _, ip := range c.IPs() {
|
||||
// handler.fail2banSrv.FailedAttempt(ip)
|
||||
// }
|
||||
return RenderError(c, fmt.Errorf("ChangePassword: %w", err), defaultErrMessage)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user