summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorstephen mcquay <stephen@mcquay.me>2015-06-08 00:40:38 -0700
committerstephen mcquay <stephen@mcquay.me>2015-06-08 00:40:38 -0700
commit73698d292a2c60cbe947efc2f62c05d8ffd88277 (patch)
tree08eb6dbe1fe759c5866a482340d3530660edcde2 /routers
parent06476459482cfdcb52cbee65d204d92d0ba3844d (diff)
downloadgitea-73698d292a2c60cbe947efc2f62c05d8ffd88277.tar.gz
gitea-73698d292a2c60cbe947efc2f62c05d8ffd88277.zip
fix .keys route
This change fixes the output from /{{ username }}.keys so that it can work in a ~/.ssh/authorized_keys file
Diffstat (limited to 'routers')
-rw-r--r--routers/user/home.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index 3484e78050..ef05be27a3 100644
--- a/routers/user/home.go
+++ b/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())
}