aboutsummaryrefslogtreecommitdiffstats
path: root/models/external_login_user.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-10-14 15:22:46 +0800
committerzeripath <art27@cantab.net>2019-10-14 08:22:46 +0100
commitf9aba9ba0f07b77cb46dde6eda3c3f5b8fa841fe (patch)
tree3c1c4aa828fffaca0f9d9394f5c52cddfe382cce /models/external_login_user.go
parente3e44a59d01da3af2be3a830f4a90394e7af4ff4 (diff)
downloadgitea-f9aba9ba0f07b77cb46dde6eda3c3f5b8fa841fe.tar.gz
gitea-f9aba9ba0f07b77cb46dde6eda3c3f5b8fa841fe.zip
fix bug on FindExternalUsersByProvider (#8504)
Diffstat (limited to 'models/external_login_user.go')
-rw-r--r--models/external_login_user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/external_login_user.go b/models/external_login_user.go
index 5058fd1b4b..59c3732184 100644
--- a/models/external_login_user.go
+++ b/models/external_login_user.go
@@ -159,7 +159,7 @@ func FindExternalUsersByProvider(opts FindExternalUserOptions) ([]ExternalLoginU
var users []ExternalLoginUser
err := x.Where(opts.toConds()).
Limit(opts.Limit, opts.Start).
- Asc("id").
+ OrderBy("login_source_id ASC, external_id ASC").
Find(&users)
if err != nil {
return nil, err