forgejo/models
zeripath bf41958c16
Pad GPG Key ID with preceding zeroes (#20878) (#20885)
Backport #20878

The go crypto library does not pad keyIDs to 16 characters with preceding zeroes. This
is a somewhat confusing thing for most users who expect these to have preceding zeroes.

This PR prefixes any sub 16 length KeyID with preceding zeroes and removes preceding
zeroes from KeyIDs inputted on the API.

Fix #20876

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-08-22 19:35:18 +01:00
..
admin
appstate
asymkey
auth
avatars
db
fixtures
foreignreference
git
issues
migrations
organization
packages
perm
project
pull
repo
unit
unittest
user
webhook
action.go
action_list.go
action_test.go
consistency.go
error.go
fixture_generation.go
fixture_test.go
main_test.go
migrate.go
migrate_test.go
notification.go
notification_test.go
org.go
org_team.go
org_team_test.go
org_test.go
release.go
repo.go
repo_activity.go
repo_collaboration.go
repo_collaboration_test.go
repo_test.go
repo_transfer.go
repo_transfer_test.go
statistic.go
task.go
token.go
token_test.go
upload.go
user.go
user_heatmap.go
user_heatmap_test.go