Skip to content

Commit

Permalink
修复判断错误
Browse files Browse the repository at this point in the history
  • Loading branch information
xmdhs committed Nov 25, 2023
1 parent 8071de4 commit cc34268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/email/email.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc34268

Please sign in to comment.