mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 12:54:53 -05:00
fix .keys route
This change fixes the output from /{{ username }}.keys so that it can work in a ~/.ssh/authorized_keys file
This commit is contained in:
parent
0647645948
commit
73698d292a
1 changed files with 1 additions and 0 deletions
|
@ -152,6 +152,7 @@ func ShowSSHKeys(ctx *middleware.Context, uid int64) {
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
for i := range keys {
|
for i := range keys {
|
||||||
buf.WriteString(keys[i].OmitEmail())
|
buf.WriteString(keys[i].OmitEmail())
|
||||||
|
buf.WriteString("\n")
|
||||||
}
|
}
|
||||||
ctx.RenderData(200, buf.Bytes())
|
ctx.RenderData(200, buf.Bytes())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue