forked from forgejo/forgejo
#334: Add Deployment Key Support
This commit is contained in:
parent
9f12ab0e88
commit
39a3b768bc
26 changed files with 693 additions and 149 deletions
|
@ -505,7 +505,7 @@ func DeleteUser(u *User) error {
|
|||
|
||||
// Delete all SSH keys.
|
||||
keys := make([]*PublicKey, 0, 10)
|
||||
if err = sess.Find(&keys, &PublicKey{OwnerId: u.Id}); err != nil {
|
||||
if err = sess.Find(&keys, &PublicKey{OwnerID: u.Id}); err != nil {
|
||||
return err
|
||||
}
|
||||
for _, key := range keys {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue