0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-26 17:34:11 -05:00
forgejo/routers/api/v1/admin
Jimmy Praet 5aebc4f000
Respect DefaultUserIsRestricted system default when creating new user (#19310)
* Apply DefaultUserIsRestricted in CreateUser

* Enforce system defaults in CreateUser

Allow for overwrites with CreateUserOverwriteOptions

* Fix compilation errors

* Add "restricted" option to create user command

* Add "restricted" option to create user admin api

* Respect default setting.Service.RegisterEmailConfirm and setting.Service.RegisterManualConfirm where needed

* Revert "Respect default setting.Service.RegisterEmailConfirm and setting.Service.RegisterManualConfirm where needed"

This reverts commit ee95d3e8dc.
2022-04-29 15:38:11 -04:00
..
adopt.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
cron.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
org.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
repo.go Add ContextUser to http request context (#18798) 2022-03-26 17:04:22 +08:00
user.go Respect DefaultUserIsRestricted system default when creating new user (#19310) 2022-04-29 15:38:11 -04:00