1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/templates
Gusted f882747209
Fix key signature error page (#22229) (#22231)
- 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.

<!--

Please check the following:

1. Make sure you are targeting the `main` branch, pull requests on
release branches are only allowed for bug fixes.
2. Read contributing guidelines:
https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md
3. Describe what your pull request does and which issue you're targeting
(if any)

-->
2022-12-28 22:16:18 +02:00
..
admin Fix sorting admin user list by last login (#22081) (#22106) 2022-12-13 09:18:20 +08:00
api/packages/pypi Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
base Enable contenthash in filename for dynamic assets (#20813) (#20932) 2022-08-25 07:16:20 +01:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
explore Remove tab/TabName usage where it's not needed (#19973) 2022-06-15 23:05:32 +08:00
mail Add disable download source configuration (#20548) (#20579) 2022-08-12 23:53:10 +08:00
org Do not add links to Posters or Assignees with ID < 0 (#20577) (#21037) 2022-09-03 20:51:10 +08:00
package Fix container layer display overflow (#22208) (#22212) 2022-12-22 19:27:30 +08:00
repo Fix button in branch list, avoid unexpected page jump before restore branch actually done (#21562) (#21927) 2022-11-25 00:02:42 +08:00
shared Do not add links to Posters or Assignees with ID < 0 (#20577) (#21037) 2022-09-03 20:51:10 +08:00
status Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
swagger Use Go 1.19 fmt for Gitea 1.17, sync emoji data (#21239) 2022-09-22 21:58:31 +08:00
user Fix key signature error page (#22229) (#22231) 2022-12-28 22:16:18 +02:00
home.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00
install.tmpl Refactor install page (db type) (#17919) 2021-12-07 13:44:08 +08:00
post-install.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00