mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-27 12:53:57 +01:00
Fix GPG subkey verify (#30193)
Fixes #30189 Can't verify subkeys if they are not loaded. (cherry picked from commit 82ffd91607ba03907ebad31ec9a38555b153a331)
This commit is contained in:
parent
fbca0dd9a6
commit
5a674dd02e
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue