forked from forgejo/forgejo
Add note to GPG key response if user has no keys (#18961)
* Prevent invalid key response. * Display note instead of 404 response. * Fixed test. Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
df9802ca61
commit
f8898c30dc
2 changed files with 4 additions and 0 deletions
|
@ -121,6 +121,7 @@ func TestExportUserGPGKeys(t *testing.T) {
|
|||
defer prepareTestEnv(t)()
|
||||
// Export empty key list
|
||||
testExportUserGPGKeys(t, "user1", `-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
Note: This user hasn't uploaded any GPG keys.
|
||||
|
||||
|
||||
=twTO
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue