UpdatePublicKey updates given public key.
(key *PublicKey)
| 465 | |
| 466 | // UpdatePublicKey updates given public key. |
| 467 | func UpdatePublicKey(key *PublicKey) error { |
| 468 | _, err := x.Id(key.ID).AllCols().Update(key) |
| 469 | return err |
| 470 | } |
| 471 | |
| 472 | // deletePublicKeys does the actual key deletion but does not update authorized_keys file. |
| 473 | func deletePublicKeys(e *xorm.Session, keyIDs ...int64) error { |