1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-28 13:49:13 -05:00
forgejo/routers/api/v1/admin
Giteabot 5d1d66ac3a
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>
(cherry picked from commit 411310d698)
2023-12-22 12:10:03 +01:00
..
adopt.go Move createrepository from module to service layer (#26927) 2023-09-06 12:08:51 +00:00
cron.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
email.go Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
hooks.go Return 404 in the API if the requested webhooks were not found (#24823) 2023-05-21 10:54:28 +08:00
org.go Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
repo.go Handle missing README in create repos API (#23387) 2023-03-13 16:55:30 -05:00
user.go chore(api): support ignore password if login source type is LDAP for creating user API (#28491) (#28525) 2023-12-22 12:10:03 +01:00