githaven-fork/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 ee95d3e8dc9e9fff4fa66a5111e4d3930280e033.
2022-04-29 15:38:11 -04:00
..
avatar.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
email_address_test.go Restrict email address validation (#17688) 2022-03-14 18:39:54 +01:00
email_address.go Restrict email address validation (#17688) 2022-03-14 18:39:54 +01:00
error.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
external_login_user.go add test coverage for original author conversion during migrations (#18506) 2022-02-01 13:20:28 -05:00
follow_test.go Move user follow and openid into models/user/ (#17613) 2021-11-17 17:58:31 +08:00
follow.go Remove NewSession method from db.Engine interface (#17577) 2021-11-21 23:41:00 +08:00
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_test.go Move user follow and openid into models/user/ (#17613) 2021-11-17 17:58:31 +08:00
openid.go Move user follow and openid into models/user/ (#17613) 2021-11-17 17:58:31 +08:00
redirect_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
redirect.go Move EmailAddress & UserRedirect into models/user/ (#17607) 2021-11-11 15:03:30 +08:00
search.go Refactor admin user filter query parameters (#18965) 2022-03-02 16:30:14 +01:00
setting_keys.go Added auto-save whitespace behavior if it changed manually (#15566) 2022-02-08 14:15:04 +08:00
setting_test.go Add config options to hide issue events (#17414) 2022-01-21 18:59:26 +01:00
setting.go Add config options to hide issue events (#17414) 2022-01-21 18:59:26 +01:00
user_test.go Restrict email address validation (#17688) 2022-03-14 18:39:54 +01:00
user.go Respect DefaultUserIsRestricted system default when creating new user (#19310) 2022-04-29 15:38:11 -04:00