0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-07 22:49:38 +01:00
gitea/services/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
block_test.go
block.go
delete.go
email_test.go
email.go
update_test.go
update.go
user_test.go Refactor DeleteInactiveUsers, fix bug and add tests (#30206) 2024-04-01 02:06:35 +00:00
user.go Refactor DeleteInactiveUsers, fix bug and add tests (#30206) 2024-04-01 02:06:35 +00:00