aboutsummaryrefslogtreecommitdiffstats
path: root/routers/user/setting/keys.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/user/setting/keys.go')
-rw-r--r--routers/user/setting/keys.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/setting/keys.go b/routers/user/setting/keys.go
index 5c28fa6e6d..ef986ef8c9 100644
--- a/routers/user/setting/keys.go
+++ b/routers/user/setting/keys.go
@@ -99,7 +99,7 @@ func KeysPost(ctx *context.Context, form auth.AddKeyForm) {
return
}
- if _, err = models.AddPublicKey(ctx.User.ID, form.Title, content); err != nil {
+ if _, err = models.AddPublicKey(ctx.User.ID, form.Title, content, 0); err != nil {
ctx.Data["HasSSHError"] = true
switch {
case models.IsErrKeyAlreadyExist(err):