dkforest

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

commit caf23044c87b2b54e0807c02fe157ab4964d36be
parent 69ce6d9c9570b2402f350d8fadf82653c05ff10a
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sat,  3 Dec 2022 17:15:10 -0500

remove debug code

Diffstat:
Mpkg/web/handlers/handlers.go | 10+++-------
1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -1146,13 +1146,9 @@ func ForgotPasswordHandler(c echo.Context) error { } else { data.EncryptedMessage = c.Request().PostFormValue("encrypted_message") data.Code = c.Request().PostFormValue("pgp_code") - if data.Code == "code" { - logrus.Error("skip code") - } else { - if data.Code != token.Value { - data.ErrorCode = "invalid code" - return c.Render(http.StatusOK, "forgot-password", data) - } + if data.Code != token.Value { + data.ErrorCode = "invalid code" + return c.Render(http.StatusOK, "forgot-password", data) } }