taldir

Directory service to resolve wallet mailboxes by messenger addresses
Log | Files | Refs | Submodules | README | LICENSE

commit a4726de09d032a1cc9d5012412786d07b788649a
parent ce2eb3af1858bc9ff8301054e0b56970093a465f
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Sun,  1 Nov 2026 06:39:48 +0100

solution may be provided lowercase

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

diff --git a/pkg/taldir/taldir.go b/pkg/taldir/taldir.go @@ -394,7 +394,7 @@ func (t *Taldir) validationRequest(w http.ResponseWriter, r *http.Request) { expectedSolution := util.GenerateSolution(validation.TargetURI, validation.Challenge) t.Logger.Logf(LogDebug, "Expected solution: `%s', given: `%s'\n", expectedSolution, confirm.Solution) - if confirm.Solution != expectedSolution { + if strings.ToUpper(confirm.Solution) != expectedSolution { w.WriteHeader(http.StatusForbidden) errDetail.Code = gana.WALLET_DIRECTORY_ALIAS_SOLUTION_INCORRECT errDetail.Hint = "The solution did not match the challenge."