Explorar o código

fix .keys route

This change fixes the output from /{{ username }}.keys so that it can work in
a ~/.ssh/authorized_keys file
stephen mcquay %!s(int64=9) %!d(string=hai) anos
pai
achega
73698d292a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      routers/user/home.go

+ 1 - 0
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())
 }