]> source.dussan.org Git - gitea.git/commit
chore(api): support ignore password if login source type is LDAP for creating user...
authorGiteabot <teabot@gitea.io>
Tue, 19 Dec 2023 03:14:06 +0000 (11:14 +0800)
committerGitHub <noreply@github.com>
Tue, 19 Dec 2023 03:14:06 +0000 (11:14 +0800)
commit411310d698e86bd639b31f2f5a8b856365b4590f
treecba6e50c0a0872a969079ef74ed2fda76756ab5a
parent6d002f8e1ee89e459bf18ccf9f4c50bde9b6e552
chore(api): support ignore password if login source type is LDAP for creating user API (#28491) (#28525)

Backport #28491 by @appleboy

- Modify the `Password` field in `CreateUserOption` struct to remove the
`Required` tag
- Update the `v1_json.tmpl` template to include the `email` field and
remove the `password` field

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
modules/structs/admin_user.go
routers/api/v1/admin/user.go
templates/swagger/v1_json.tmpl