Giteabot 98a81bef17 Refactor DeleteInactiveUsers, fix bug and add tests (#30206) (#30222)
Backport #30206 by wxiaoguang

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

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-04-01 12:58:46 +08:00
..
2023-10-20 14:43:08 +00:00
2024-03-04 08:16:03 +00:00
2024-02-14 12:50:10 -05:00
2024-03-04 08:16:03 +00:00
2024-03-04 08:16:03 +00:00
2024-03-11 09:24:23 +00:00