summaryrefslogtreecommitdiffstats
path: root/routers/user/setting
diff options
context:
space:
mode:
Diffstat (limited to 'routers/user/setting')
-rw-r--r--routers/user/setting/applications.go2
-rw-r--r--routers/user/setting/keys.go4
-rw-r--r--routers/user/setting/profile.go2
-rw-r--r--routers/user/setting/security.go2
4 files changed, 5 insertions, 5 deletions
diff --git a/routers/user/setting/applications.go b/routers/user/setting/applications.go
index d93684bcc0..e7bf612269 100644
--- a/routers/user/setting/applications.go
+++ b/routers/user/setting/applications.go
@@ -68,7 +68,7 @@ func DeleteApplication(ctx *context.Context) {
}
func loadApplicationsData(ctx *context.Context) {
- tokens, err := models.ListAccessTokens(ctx.User.ID)
+ tokens, err := models.ListAccessTokens(ctx.User.ID, models.ListOptions{})
if err != nil {
ctx.ServerError("ListAccessTokens", err)
return
diff --git a/routers/user/setting/keys.go b/routers/user/setting/keys.go
index c62b117a76..3475299437 100644
--- a/routers/user/setting/keys.go
+++ b/routers/user/setting/keys.go
@@ -133,14 +133,14 @@ func DeleteKey(ctx *context.Context) {
}
func loadKeysData(ctx *context.Context) {
- keys, err := models.ListPublicKeys(ctx.User.ID)
+ keys, err := models.ListPublicKeys(ctx.User.ID, models.ListOptions{})
if err != nil {
ctx.ServerError("ListPublicKeys", err)
return
}
ctx.Data["Keys"] = keys
- gpgkeys, err := models.ListGPGKeys(ctx.User.ID)
+ gpgkeys, err := models.ListGPGKeys(ctx.User.ID, models.ListOptions{})
if err != nil {
ctx.ServerError("ListGPGKeys", err)
return
diff --git a/routers/user/setting/profile.go b/routers/user/setting/profile.go
index 6db9fc7c6e..a5cc433a9a 100644
--- a/routers/user/setting/profile.go
+++ b/routers/user/setting/profile.go
@@ -196,7 +196,7 @@ func Repos(ctx *context.Context) {
ctxUser := ctx.User
var err error
- if err = ctxUser.GetRepositories(1, setting.UI.User.RepoPagingNum); err != nil {
+ if err = ctxUser.GetRepositories(models.ListOptions{Page: 1, PageSize: setting.UI.User.RepoPagingNum}); err != nil {
ctx.ServerError("GetRepositories", err)
return
}
diff --git a/routers/user/setting/security.go b/routers/user/setting/security.go
index f8f5cc0cd8..c7c3226c9b 100644
--- a/routers/user/setting/security.go
+++ b/routers/user/setting/security.go
@@ -71,7 +71,7 @@ func loadSecurityData(ctx *context.Context) {
ctx.Data["RequireU2F"] = true
}
- tokens, err := models.ListAccessTokens(ctx.User.ID)
+ tokens, err := models.ListAccessTokens(ctx.User.ID, models.ListOptions{})
if err != nil {
ctx.ServerError("ListAccessTokens", err)
return