]> source.dussan.org Git - gitea.git/commit
Add support for searching users by email (#30908)
authoryp05327 <576951401@qq.com>
Fri, 4 Oct 2024 17:45:06 +0000 (02:45 +0900)
committerGitHub <noreply@github.com>
Fri, 4 Oct 2024 17:45:06 +0000 (17:45 +0000)
commit5d6d025c9b8d2abca9ec2bfdc795d1f0c1c6592d
treeae29b3ba5c7d498fa37308afc680c2fe68b15a91
parent7e68bc88238104d2ee8b5a877fc1ad437f1778a4
Add support for searching users by email (#30908)

Fix #30898

we have an option `SearchByEmail`, so enable it, then we can search user
by email.
Also added a test for it.
models/user/search.go
routers/api/v1/user/user.go
tests/integration/api_user_search_test.go