gitea/models/user
wxiaoguang a008486f5c
Refactor DeleteInactiveUsers, fix bug and add tests (#30206)
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
2024-04-01 02:06:35 +00:00
..
avatar.go
badge.go
block.go
email_address_test.go
email_address.go
error.go
external_login_user.go
follow_test.go
follow.go
list.go
main_test.go
must_change_password.go Add command to bulk set must-change-password (#22823) 2023-02-14 16:12:19 -06:00
openid_test.go
openid.go
redirect_test.go
redirect.go
search.go migrate some more "OptionalBool" to "Option[bool]" (#29479) 2024-02-29 18:52:49 +00:00
setting_keys.go
setting_test.go
setting.go
user_system.go
user_test.go
user_update.go
user.go