summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-17 17:05:37 +0800
committerUnknwon <u@gogs.io>2015-08-17 17:05:37 +0800
commit407385db7eae3ccdef235ac68273364bd704d0bd (patch)
treec32c26581325a5a3abbe78c110634624fa54e330 /routers/user
parent875f9177713232350b34767fdc87bb15fd417813 (diff)
downloadgitea-407385db7eae3ccdef235ac68273364bd704d0bd.tar.gz
gitea-407385db7eae3ccdef235ac68273364bd704d0bd.zip
work on #1493
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/setting.go b/routers/user/setting.go
index de9af6556b..428065249a 100644
--- a/routers/user/setting.go
+++ b/routers/user/setting.go
@@ -420,7 +420,7 @@ func SettingsApplicationsPost(ctx *middleware.Context, form auth.NewAccessTokenF
}
t := &models.AccessToken{
- Uid: ctx.User.Id,
+ UID: ctx.User.Id,
Name: form.Name,
}
if err := models.NewAccessToken(t); err != nil {