fix .keys route

This change fixes the output from /{{ username }}.keys so that it can work in
a ~/.ssh/authorized_keys file
tokarchuk/v1.17
stephen mcquay 10 years ago
parent 0647645948
commit 73698d292a
  1. 1
      routers/user/home.go

@ -152,6 +152,7 @@ func ShowSSHKeys(ctx *middleware.Context, uid int64) {
var buf bytes.Buffer
for i := range keys {
buf.WriteString(keys[i].OmitEmail())
buf.WriteString("\n")
}
ctx.RenderData(200, buf.Bytes())
}

Loading…
Cancel
Save