Skip to content

Commit

Permalink
Set default login source id to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus Lindvall committed May 19, 2018
1 parent 9f10f71 commit 237ae23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/user/setting/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 237ae23

Please sign in to comment.