diff options
Diffstat (limited to 'models/user.go')
-rw-r--r-- | models/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go index bc0a0461ca..f2fc480e1b 100644 --- a/models/user.go +++ b/models/user.go @@ -592,7 +592,7 @@ func DeleteUser(u *User) error { return fmt.Errorf("get all public keys: %v", err) } for _, key := range keys { - if err = deletePublicKey(sess, key); err != nil { + if err = deletePublicKey(sess, key.ID); err != nil { return fmt.Errorf("deletePublicKey: %v", err) } } |