Skip to content

Commit 237ae23

Browse files
author
Magnus Lindvall
committed
Set default login source id to 0
1 parent 9f10f71 commit 237ae23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/user/setting/keys.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func KeysPost(ctx *context.Context, form auth.AddKeyForm) {
9999
return
100100
}
101101

102-
if _, err = models.AddPublicKey(ctx.User.ID, form.Title, content); err != nil {
102+
if _, err = models.AddPublicKey(ctx.User.ID, form.Title, content, 0); err != nil {
103103
ctx.Data["HasSSHError"] = true
104104
switch {
105105
case models.IsErrKeyAlreadyExist(err):

0 commit comments

Comments
 (0)