dkforest

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

commit 4c9b10a0bb6b461d413c94a7c7e300a9adc85d49
parent 0fcfc1f46c87dff9edebb2a4dd85a628d8b8e856
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Fri,  2 Dec 2022 16:30:27 -0500

typo

Diffstat:
Mpkg/web/handlers/handlers.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -3373,6 +3373,7 @@ func AddPGPHandler(c echo.Context) error { return c.Redirect(http.StatusFound, "/settings/pgp") } + data.PGPPublicKey = c.Request().PostFormValue("pgp_public_key") data.GpgMode = utils.DoParseBool(c.Request().PostFormValue("gpg_mode")) if data.GpgMode { data.ToBeSignedMessage = c.Request().PostFormValue("to_be_signed_message") @@ -3384,7 +3385,6 @@ func AddPGPHandler(c echo.Context) error { } } else { - data.PGPPublicKey = c.Request().PostFormValue("pgp_public_key") data.EncryptedMessage = c.Request().PostFormValue("encrypted_message") data.Code = c.Request().PostFormValue("pgp_code") if data.Code != token {