nextcloud-server/lib/private/Authentication
Ferdinand Thiessen 7dd85e15b9
fix: Make user removal more resilient
Currently there is a problem if an exception is thrown in `User::delete`,
because at that point the user is already removed from the backend,
but not all data is deleted.

There is no way to recover from this state, as the user is gone no information is available anymore.
This means the data is still available on the server but can not removed by any API anymore.

The solution here is to first set a flag and backup the user home,
this can be used to recover failed user deletions in a way the delete can be re-tried.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-10-08 21:02:07 +07:00
..
Events chore: Add SPDX header 2024-05-24 13:11:22 +07:00
Exceptions chore: Add SPDX header 2024-05-24 13:11:22 +07:00
Listeners fix: Make user removal more resilient 2024-10-08 21:02:07 +07:00
Login chore: Add SPDX header 2024-05-24 13:11:22 +07:00
LoginCredentials chore: Add SPDX header 2024-05-24 13:11:22 +07:00
Notifications feat(notifications): Migrate server INotifiers to new exceptions 2024-06-25 11:56:24 +07:00
Token feat(auth): Clean-up unused auth tokens and wipe tokens 2024-08-13 12:39:11 +07:00
TwoFactorAuth chore: Add SPDX header 2024-05-24 13:11:22 +07:00
WebAuthn feat(webauthn): Add user verification to webauthn challenges 2024-08-15 11:52:40 +07:00