Refactor auth package (#17962)

This commit is contained in:
Lunny Xiao authored and GitHub committed 2022-01-02 21:12:35 +08:00
1 parent e61b390d54
commit de8e3948a5
87 files changed
+2880 -2770

No files matched your search

-1
View File
@@ -216,7 +216,6 @@ func KeysPost(ctx *context.Context) {
// DeleteKey response for delete user's SSH/GPG key
func DeleteKey(ctx *context.Context) {
switch ctx.FormString("type") {
case "gpg":
if err := asymkey_model.DeleteGPGKey(ctx.User, ctx.FormInt64("id")); err != nil {