0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-24 20:24:43 +01:00
gitea/models/user
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
..
avatar.go
email_address.go Restrict email address validation (#17688) 2022-03-14 18:39:54 +01:00
email_address_test.go Restrict email address validation (#17688) 2022-03-14 18:39:54 +01:00
error.go
external_login_user.go add test coverage for original author conversion during migrations (#18506) 2022-02-01 13:20:28 -05:00
follow.go
follow_test.go
list.go Accounts with WebAuthn only (no TOTP) now exist ... fix code to handle that case (#18897) 2022-03-02 01:24:31 +01:00
main_test.go Use a struct as test options (#19393) 2022-04-14 21:58:21 +08:00
openid.go
openid_test.go
redirect.go
redirect_test.go
search.go Refactor admin user filter query parameters (#18965) 2022-03-02 16:30:14 +01:00
setting.go
setting_keys.go Added auto-save whitespace behavior if it changed manually (#15566) 2022-02-08 14:15:04 +08:00
setting_test.go
user.go Respect DefaultUserIsRestricted system default when creating new user (#19310) 2022-04-29 15:38:11 -04:00
user_test.go Restrict email address validation (#17688) 2022-03-14 18:39:54 +01:00