forgejo/models
Gusted 75f128ebf8
Fix key signature error page (#22229) (#22230)
- Backport of #22229
- When the GPG key contains an error, such as an invalid signature or an
email address that does not match the user.A page will be shown that
says you must provide a signature for the token.
- This page had two errors: one had the wrong translation key and the
other tried to use an undefined variable
[`.PaddedKeyID`](e81ccc406b/models/asymkey/gpg_key.go (L65-L72)),
which is a function implemented on the `GPGKey` struct, given that we
don't have that, we use
[`KeyID`](e81ccc406b/routers/web/user/setting/keys.go (L102))
which is [the fingerprint of the
publickey](https://pkg.go.dev/golang.org/x/crypto/openpgp/packet#PublicKey.KeyIdString)
and is a valid way for opengpg to refer to a key.
2022-12-30 12:53:23 +08:00
..
activities Use complete SHA to create and query commit status (#22244) (#22257) 2022-12-28 11:03:21 +01:00
admin
asymkey Fix key signature error page (#22229) (#22230) 2022-12-30 12:53:23 +08:00
auth
avatars Fix vertical align of committer avatar rendered by email address (#21884) (#21918) 2022-11-24 10:52:20 +08:00
db Fix parallel creating commit status bug with tests (#21911) (#21989) 2022-12-13 18:59:18 +08:00
fixtures
foreignreference
git Use complete SHA to create and query commit status (#22244) (#22257) 2022-12-28 11:03:21 +01:00
issues Fix issue/PR numbers (#22037) (#22044) 2022-12-07 14:20:12 +08:00
migrations
organization Do not allow Ghost access to limited visible user/org (#21849) (#21876) 2022-11-20 19:37:20 +00:00
packages Fix condition for is_internal (#22095) (#22132) 2022-12-14 13:38:15 -05:00
perm
project
pull
repo
system
unit
unittest
user
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
migrate.go
migrate_test.go
org.go
org_team.go
org_team_test.go
org_test.go
repo.go Fix issue/PR numbers (#22037) (#22044) 2022-12-07 14:20:12 +08:00
repo_collaboration.go
repo_collaboration_test.go
repo_test.go
repo_transfer.go
repo_transfer_test.go
user.go