gitea/models/user
wxiaoguang a008486f5c
Refactor DeleteInactiveUsers, fix bug and add tests ()
1. check `IsActive` before calling `IsLastAdminUser`.
2. Fix some comments and error messages.
3. Don't `return err` if "removing file" fails in `DeleteUser`.
4. Remove incorrect `DeleteInactiveEmailAddresses`. Active users could
also have inactive emails, and inactive emails do not support
"olderThan"
5. Add tests
..
avatar.go Replace -1 with GhostUserID ()
badge.go Add admin API route for managing user's badges ()
block.go Add user blocking ()
email_address.go Refactor DeleteInactiveUsers, fix bug and add tests ()
email_address_test.go migrate some more "OptionalBool" to "Option[bool]" ()
error.go Remove unused `KeyID`. ()
external_login_user.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods ()
follow.go Add user blocking ()
follow_test.go Next round of `db.DefaultContext` refactor ()
list.go Reduce usage of `db.DefaultContext` ()
main_test.go make writing main test easier ()
must_change_password.go Add command to bulk set must-change-password ()
openid.go More refactoring of `db.DefaultContext` ()
openid_test.go More refactoring of `db.DefaultContext` ()
redirect.go Another round of `db.DefaultContext` refactor ()
redirect_test.go Another round of `db.DefaultContext` refactor ()
search.go migrate some more "OptionalBool" to "Option[bool]" ()
setting.go More refactoring of `db.DefaultContext` ()
setting_keys.go Show outdated comments in files changed tab ()
setting_test.go More refactoring of `db.DefaultContext` ()
user.go Add setting to disable user features when user login type is not plain ()
user_system.go Replace -1 with GhostUserID ()
user_test.go Add setting to disable user features when user login type is not plain ()
user_update.go Implement FSFE REUSE for golang files ()