dkforest

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

commit a485ea06d549deaba61bae1cf8eedc5a5803547c
parent 4fb0d90e6dccae4904d0216825961e746bbc5be5
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Tue,  3 Oct 2023 16:34:10 -0400

force user refresh when using force captcha command

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

diff --git a/pkg/web/handlers/interceptors/slashInterceptor.go b/pkg/web/handlers/interceptors/slashInterceptor.go @@ -298,6 +298,7 @@ func handleForceCaptchaCmd(c *command.Command) (handled bool) { c.DB.NewAudit(*c.AuthUser, fmt.Sprintf("force captcha %s #%d", user.Username, user.ID)) user.CaptchaRequired = true user.DoSave(c.DB) + database.MsgPubSub.Pub("refresh_"+string(user.Username), database.ChatMessageType{Typ: database.ForceRefresh}) } c.Err = command.ErrRedirect return true