From 484a5e35356d921d702e1fd3563ce55c68305d3d Mon Sep 17 00:00:00 2001 From: WeebDataHoarder Date: Wed, 14 May 2025 01:30:31 +0200 Subject: [PATCH] challenge/context: clear cookies by issuing a new cookie instead of clearing it --- lib/challenge/data.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/challenge/data.go b/lib/challenge/data.go index 37faa4d..9651a2e 100644 --- a/lib/challenge/data.go +++ b/lib/challenge/data.go @@ -295,8 +295,8 @@ func (d *RequestData) EvaluateChallenges(w http.ResponseWriter, r *http.Request) challengeMap, err := d.verifyChallengeState() if err != nil { if !errors.Is(err, http.ErrNoCookie) { - //clear invalid cookie and continue - utils.ClearCookie(d.cookieName, w, r) + //queue resend invalid cookie and continue + d.challengeMapModified = true } challengeMap = make(TokenChallengeMap) }