aboutsummaryrefslogtreecommitdiffstats
path: root/models/user
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2023-04-07 12:08:36 +0200
committerGitHub <noreply@github.com>2023-04-07 18:08:36 +0800
commit88033438aa8214569913899a17b19b57bd609d97 (patch)
tree1cbe2ed4cc63dc4f3b93f2aaaface769a0e278ca /models/user
parentca5722a0fae6cc16dc99021176596970bbf29caf (diff)
downloadgitea-88033438aa8214569913899a17b19b57bd609d97.tar.gz
gitea-88033438aa8214569913899a17b19b57bd609d97.zip
Support "." char as user name for User/Orgs in RSS/ATOM/GPG/KEYS path ... (#23874)
- close #22301 workaround for https://github.com/go-chi/chi/issues/781
Diffstat (limited to 'models/user')
-rw-r--r--models/user/user_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/user/user_test.go b/models/user/user_test.go
index fc8f6b8d51..8e78fee6b3 100644
--- a/models/user/user_test.go
+++ b/models/user/user_test.go
@@ -99,13 +99,13 @@ func TestSearchUsers(t *testing.T) {
}
testUserSuccess(&user_model.SearchUserOptions{OrderBy: "id ASC", ListOptions: db.ListOptions{Page: 1}},
- []int64{1, 2, 4, 5, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 20, 21, 24, 27, 28, 29, 30, 32})
+ []int64{1, 2, 4, 5, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 20, 21, 24, 27, 28, 29, 30, 32, 34})
testUserSuccess(&user_model.SearchUserOptions{ListOptions: db.ListOptions{Page: 1}, IsActive: util.OptionalBoolFalse},
[]int64{9})
testUserSuccess(&user_model.SearchUserOptions{OrderBy: "id ASC", ListOptions: db.ListOptions{Page: 1}, IsActive: util.OptionalBoolTrue},
- []int64{1, 2, 4, 5, 8, 10, 11, 12, 13, 14, 15, 16, 18, 20, 21, 24, 27, 28, 29, 30, 32})
+ []int64{1, 2, 4, 5, 8, 10, 11, 12, 13, 14, 15, 16, 18, 20, 21, 24, 27, 28, 29, 30, 32, 34})
testUserSuccess(&user_model.SearchUserOptions{Keyword: "user1", OrderBy: "id ASC", ListOptions: db.ListOptions{Page: 1}, IsActive: util.OptionalBoolTrue},
[]int64{1, 10, 11, 12, 13, 14, 15, 16, 18})