]> source.dussan.org Git - gitea.git/commit
chore(api): support ignore password if login source type is LDAP for creating user...
authorBo-Yi Wu <appleboy.tw@gmail.com>
Tue, 19 Dec 2023 02:32:45 +0000 (10:32 +0800)
committerGitHub <noreply@github.com>
Tue, 19 Dec 2023 02:32:45 +0000 (02:32 +0000)
commit14ffdf617375eda6f9d676271fcb796a5b83186d
treec069e210b12d3a82c32f8819f0bf22e1c8268253
parent11f0519ad852809d842e3382595579d8f3ffbc87
chore(api): support ignore password if login source type is LDAP for creating user API (#28491)

- 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>
modules/structs/admin_user.go
routers/api/v1/admin/user.go
templates/swagger/v1_json.tmpl