You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
10 months ago
..
avatar.go Unify user update methods (#28733) 1 year ago
block.go Add user blocking (#29028) 11 months ago
block_test.go Add user blocking (#29028) 11 months ago
delete.go Add user blocking (#29028) 11 months ago
email.go Skip email domain check when admins edit user emails (#29609) 11 months ago
email_test.go Skip email domain check when admins edit user emails (#29609) 11 months ago
update.go Unify password changing and invalidate auth tokens (#27625) 1 year ago
update_test.go Unify user update methods (#28733) 1 year ago
user.go Refactor DeleteInactiveUsers, fix bug and add tests (#30206) 10 months ago
user_test.go Refactor DeleteInactiveUsers, fix bug and add tests (#30206) 10 months ago