Fix GPG subkey verify (#30193)

Fixes #30189

Can't verify subkeys if they are not loaded.
pull/30169/head^2
KN4CK3R 8 months ago committed by GitHub
parent 7eb3ab0765
commit 82ffd91607
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      models/asymkey/gpg_key_verify.go

@ -46,6 +46,10 @@ func VerifyGPGKey(ctx context.Context, ownerID int64, keyID, token, signature st
return "", ErrGPGKeyNotExist{}
}
if err := key.LoadSubKeys(ctx); err != nil {
return "", err
}
sig, err := extractSignature(signature)
if err != nil {
return "", ErrGPGInvalidTokenSignature{

Loading…
Cancel
Save