dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 1a7a67378b101be62de60f4a7af2fcb71ab13bf1
parent 5f7434cb35f25cf822e7773da8245f555dff1922
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Mon, 23 Jan 2023 13:49:48 -0800

reset login attempts when password is reset by admin

Diffstat:
Mpkg/web/handlers/admin.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/pkg/web/handlers/admin.go b/pkg/web/handlers/admin.go @@ -556,6 +556,7 @@ func AdminEditUserHandler(c echo.Context) error { } if hashedPassword != "" { + user.LoginAttempts = 0 if err := user.ChangePassword(hashedPassword); err != nil { data.Errors.Password = err.Error() return c.Render(http.StatusOK, "admin.user-edit", data)