Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gpg key deletion #14561

Merged
merged 4 commits into from
Feb 4, 2021
Merged

Commits on Feb 3, 2021

  1. Fix GPG key deletion when user is deleted

    Per go-gitea#14531, deleting a user account will delete the user's GPG keys
    from the `gpg_key` table but not from `gpg_key_import`, which causes
    an error when creating an account with the same email and attempting
    to re-add the same key. This commit deletes all entries from
    `gpg_key_import` that match any GPG key IDs belonging to the user.
    Anton Khimich committed Feb 3, 2021
    Configuration menu
    Copy the full SHA
    4c62873 View commit details
    Browse the repository at this point in the history
  2. Format added code in models/user.go

    Anton Khimich committed Feb 3, 2021
    Configuration menu
    Copy the full SHA
    11c2796 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2021

  1. Create a new function for listing GPG keys and apply it

    Create a new function `listGPGKeys` and replace a previous use
    of `ListGPGKeys`. Thanks to @6543 for the patch.
    Anton Khimich committed Feb 4, 2021
    Configuration menu
    Copy the full SHA
    6c91cc2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    013071f View commit details
    Browse the repository at this point in the history