From 355033508501d99b48f1c50d918fd919409bff51 Mon Sep 17 00:00:00 2001 From: georgehao Date: Fri, 12 Apr 2024 00:07:25 +0800 Subject: [PATCH] feat: fix --- coordinator/internal/controller/api/auth.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/coordinator/internal/controller/api/auth.go b/coordinator/internal/controller/api/auth.go index f3d3d7aa1a..79ec8ca2c4 100644 --- a/coordinator/internal/controller/api/auth.go +++ b/coordinator/internal/controller/api/auth.go @@ -59,11 +59,14 @@ func (a *AuthController) PayloadFunc(data interface{}) jwt.MapClaims { Challenge: v.Message.Challenge, ProverName: v.Message.ProverName, ProverVersion: v.Message.ProverVersion, - HardForkName: v.Message.HardForkName, }, Signature: v.Signature, } + if v.Message.HardForkName != "" { + authMsg.Identity.HardForkName = v.Message.HardForkName + } + publicKey, err := authMsg.PublicKey() if err != nil { return jwt.MapClaims{}