(c *context.Context)
| 376 | } |
| 377 | |
| 378 | func DeleteSSHKey(c *context.Context) { |
| 379 | if err := database.DeletePublicKey(c.User, c.QueryInt64("id")); err != nil { |
| 380 | c.Flash.Error("DeletePublicKey: " + err.Error()) |
| 381 | } else { |
| 382 | c.Flash.Success(c.Tr("settings.ssh_key_deletion_success")) |
| 383 | } |
| 384 | |
| 385 | c.JSONSuccess(map[string]any{ |
| 386 | "redirect": conf.Server.Subpath + "/user/settings/ssh", |
| 387 | }) |
| 388 | } |
| 389 | |
| 390 | func SettingsSecurity(c *context.Context) { |
| 391 | c.Title("settings.security") |
nothing calls this directly
no test coverage detected