This commit is contained in:
xmdhs 2023-09-14 13:29:17 +08:00
parent 7624268b93
commit 97a749e597
No known key found for this signature in database
GPG Key ID: E809D6D43DEFCC95

View File

@ -244,7 +244,7 @@ func (y *Yggdrasil) GetProfile(ctx context.Context, uuid string, unsigned bool,
if !unsigned { if !unsigned {
s := sign.NewAuthlibSignWithKey(y.prikey) s := sign.NewAuthlibSignWithKey(y.prikey)
for i, v := range pl { for i, v := range pl {
sign, err := s.Sign([]byte(v.Signature)) sign, err := s.Sign([]byte(v.Value))
if err != nil { if err != nil {
return yggdrasil.UserInfo{}, fmt.Errorf("GetProfile: %w", ErrNotUser) return yggdrasil.UserInfo{}, fmt.Errorf("GetProfile: %w", ErrNotUser)
} }