summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-27 17:01:39 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-27 17:01:39 -0400
commit41b0a7b97c2cc1ffd8751fd12690642968961d0e (patch)
treee3c681c2147fc772629923410bd44b324adf9e6e /routers
parent62240b6bc12abfe257224bb554a75a5712803059 (diff)
downloadgitea-41b0a7b97c2cc1ffd8751fd12690642968961d0e.tar.gz
gitea-41b0a7b97c2cc1ffd8751fd12690642968961d0e.zip
Mirror fix on public key
Diffstat (limited to 'routers')
-rw-r--r--routers/user/setting.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/user/setting.go b/routers/user/setting.go
index 019044c53d..a55e617f44 100644
--- a/routers/user/setting.go
+++ b/routers/user/setting.go
@@ -166,7 +166,8 @@ func SettingSSHKeys(ctx *middleware.Context, form auth.AddSSHKeyForm) {
return
}
- k := &models.PublicKey{OwnerId: ctx.User.Id,
+ k := &models.PublicKey{
+ OwnerId: ctx.User.Id,
Name: form.KeyName,
Content: form.KeyContent,
}