forgejo/routers/web/user
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
..
setting Fix key signature error page (#22229) (#22230) 2022-12-30 12:53:23 +08:00
avatar.go Return 404 when user is not found on avatar (#21476) 2022-10-16 19:48:17 +01:00
code.go Add user/organization code search (#19977) 2022-10-11 00:12:03 +01:00
home.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2022-10-24 20:29:17 +01:00
home_test.go Add some api integration tests (#18872) 2022-10-18 00:23:27 +08:00
main_test.go Use a struct as test options (#19393) 2022-04-14 21:58:21 +08:00
notification.go Add pages to view watched repos and subscribed issues/PRs (#17156) 2022-09-29 22:09:14 +03:00
package.go Add support for HEAD requests in Maven registry (#21834) (#21929) 2022-11-25 13:46:28 +02:00
profile.go Add user/organization code search (#19977) 2022-10-11 00:12:03 +01:00
search.go Never use /api/v1 from Gitea UI Pages (#19318) 2022-04-07 20:59:56 +02:00
stop_watch.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
task.go Move some files into models' sub packages (#20262) 2022-08-25 10:31:57 +08:00