0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 23:33:15 -05:00
forgejo/models/asymkey
Giteabot 64c7687308
Fix panic of ssh public key page after deletion of auth source (#31829) (#31836)
Backport #31829 by @lunny

Fix #31730

This PR rewrote the function `PublicKeysAreExternallyManaged` with a
simple test. The new function removed the loop to make it more readable.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
(cherry picked from commit 5fa90ad9bc7fe800d657e909462e5e1caefc7193)
2024-08-18 07:11:32 +02:00
..
error.go
gpg_key.go Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
gpg_key_add.go
gpg_key_commit_verification.go models/asymkey: Implement Tag verification 2024-04-01 13:42:11 +00:00
gpg_key_common.go Fix missing 0 prefix of GPG key id (#30245) 2024-04-08 11:46:40 +02:00
gpg_key_import.go
gpg_key_list.go Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
gpg_key_object_verification.go Fix missing 0 prefix of GPG key id (#30245) 2024-04-08 11:46:40 +02:00
gpg_key_tag_verification.go models/asymkey: Implement Tag verification 2024-04-01 13:42:11 +00:00
gpg_key_test.go enable linter testifylint on v7 (#4572) 2024-07-30 19:42:06 +00:00
gpg_key_verify.go Fix GPG subkey verify (#30193) (#30203) 2024-04-08 11:31:31 +02:00
main_test.go [GITEA] Add noreply email address as verified for SSH signed Git commits 2024-02-05 16:09:40 +01:00
ssh_key.go Fix panic of ssh public key page after deletion of auth source (#31829) (#31836) 2024-08-18 07:11:32 +02:00
ssh_key_authorized_keys.go Fix some pending problems (#29985) 2024-03-26 19:04:26 +01:00
ssh_key_authorized_principals.go Fix some pending problems (#29985) 2024-03-26 19:04:26 +01:00
ssh_key_deploy.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 2023-12-07 15:27:36 +08:00
ssh_key_fingerprint.go Clean up log messages (#30313) 2024-04-15 16:11:14 +02:00
ssh_key_object_verification.go models/asymkey: Implement Tag verification 2024-04-01 13:42:11 +00:00
ssh_key_object_verification_test.go enable linter testifylint on v7 (#4572) 2024-07-30 19:42:06 +00:00
ssh_key_parse.go
ssh_key_principals.go Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
ssh_key_test.go Fix panic of ssh public key page after deletion of auth source (#31829) (#31836) 2024-08-18 07:11:32 +02:00
ssh_key_verify.go Retry SSH key verification with additional CRLF if it failed (#28392) 2023-12-14 02:39:32 +00:00