mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 02:24:03 +00:00
190383dbf8
- `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). |
||
---|---|---|
.. | ||
avatar.go | ||
badge.go | ||
block.go | ||
block_test.go | ||
email_address.go | ||
email_address_test.go | ||
error.go | ||
external_login_user.go | ||
follow.go | ||
follow_test.go | ||
list.go | ||
main_test.go | ||
must_change_password.go | ||
openid.go | ||
openid_test.go | ||
redirect.go | ||
redirect_test.go | ||
search.go | ||
setting.go | ||
setting_keys.go | ||
setting_test.go | ||
user.go | ||
user_system.go | ||
user_test.go | ||
user_update.go |