commit e34d073f0259e40f57df4643d0ba8030c3f01bbc parent e8638a1530597b8eedcb9d52c02099cad4418061 Author: n0tr1v <n0tr1v@protonmail.com> Date: Mon, 1 Jan 2024 18:07:15 -0500 cleanup Diffstat:
| M | pkg/web/handlers/handlers.go | | | 3 | +-- |
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -636,8 +636,7 @@ func CaptchaRequiredHandler(c echo.Context) error { return c.Render(http.StatusOK, captchaRequiredTmpl, data) } config.CaptchaRequiredSuccess.Inc() - authUser.CaptchaRequired = false - authUser.DoSave(db) + authUser.SetCaptchaRequired(db, false) return c.Redirect(http.StatusFound, "/chat") }