forgejo/services/user
Gusted 190383dbf8
[BUG] Don't delete inactive emails explicitly
- `user_model.DeleteInactiveEmailAddresses` related code was added in
Gogs as part to delete inactive users, however since then the related
code to delete users has changed and this code now already delete email
addresses of the user, it's therefore not needed anymore to
`DeleteInactiveEmailAddresses`.
- The call to `DeleteInactiveEmailAddresses` can actually cause issues.
As the associated user might not have been deleted, because it
was not older than the specified `olderThan` argument. Therefore causing
a database inconsistency and lead to internal server errors if the user
tries to activate their account.
- Adds unit test to verify correct behavior (fails without this patch).
2024-03-29 15:14:09 +01:00
..
avatar.go Unify user update methods (#28733) 2024-02-04 13:29:09 +00:00
block.go [MODERATION] User blocking 2024-02-05 15:56:45 +01:00
block_test.go [MODERATION] User blocking 2024-02-05 15:56:45 +01:00
delete.go [MODERATION] User blocking 2024-02-05 15:56:45 +01:00
email.go Skip email domain check when admins edit user emails (#29609) 2024-03-11 23:36:58 +07:00
email_test.go Skip email domain check when admins edit user emails (#29609) 2024-03-11 23:36:58 +07:00
update.go Allow users to hide all "Add more units..." hints 2024-03-21 08:15:51 +01:00
update_test.go Unify user update methods (#28733) 2024-02-04 13:29:09 +00:00
user.go [BUG] Don't delete inactive emails explicitly 2024-03-29 15:14:09 +01:00
user_test.go [BUG] Don't delete inactive emails explicitly 2024-03-29 15:14:09 +01:00