diff options
Diffstat (limited to 'routers/user/setting.go')
-rw-r--r-- | routers/user/setting.go | 2 |
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 { |