From cc3426810497e27e40765f90783c864b43ea9b39 Mon Sep 17 00:00:00 2001 From: xmdhs Date: Sat, 25 Nov 2023 18:40:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A4=E6=96=AD=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/email/email.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/email/email.go b/service/email/email.go index b512ca0..c1b0789 100644 --- a/service/email/email.go +++ b/service/email/email.go @@ -168,7 +168,7 @@ func (e EmailService) VerifyJwt(email, jwtStr, path string) error { } sub, _ := token.Claims.GetSubject() iss, _ := token.Claims.GetIssuer() - if !token.Valid || sub != email || iss+path != issuer { + if !token.Valid || sub != email || issuer+path != iss { return fmt.Errorf("VerifyJwt: %w", ErrTokenInvalid) } return nil