forgejo/services
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
..
actions Merge pull request '[ACTIONS] port scheduled actions from Gitea' (#2826) from earl-warren/forgejo:wip-gitea-schedule into forgejo 2024-03-27 06:23:56 +00:00
agit
asymkey
attachment
auth Fix the bug that user may logout if he switch pages too fast (#29962) 2024-03-26 19:04:26 +01:00
automerge
context
contexttest
convert Merge pull request '[ACTIONS] port scheduled actions from Gitea' (#2826) from earl-warren/forgejo:wip-gitea-schedule into forgejo 2024-03-27 06:23:56 +00:00
cron
doctor Fix some pending problems (#29985) 2024-03-26 19:04:26 +01:00
externalaccount
feed
forgejo
forms [REFACTOR] webhook gogs endpoint 2024-03-27 15:38:39 +01:00
gitdiff [PERFORMANCE] git check-attr on bare repo if supported 2024-03-28 10:52:51 +01:00
indexer
issue [Port] gitea#29999: Fix Add/Remove WIP on pull request title failure 2024-03-29 12:21:51 +01:00
lfs
mailer
markup
migrations
mirror
notify
org
packages
pull [Port] gitea#29842: Notify reviewers added via CODEOWNERS 2024-03-28 14:58:39 +01:00
release
repository Merge pull request '[PERFORMANCE] git check-attr on bare repo if supported' (#2763) from oliverpool/forgejo:check_attr_bare into forgejo 2024-03-28 11:14:52 +00:00
secrets
task
uinotification
user [BUG] Don't delete inactive emails explicitly 2024-03-29 15:14:09 +01:00
webhook [REFACTOR] webhook gogs endpoint 2024-03-27 15:38:39 +01:00
wiki Fix an actions schedule bug (#28942) 2024-03-25 16:27:32 +01:00