go-vikunja/vikunja

Delete user account doesn't work

PulsarFX opened this issue · 7 comments

Description

When trying to delete the own user account, a confirm mail is sent, with the hint:
"... we will schedule the deletion of your account in three days and send you another email until then."

Then I get an (annoying) email each day, but something is messed up:
It says: 3, 2, 2, 1, 1, 1, 1 days left...
grafik

After 4 days, I can still login and get this banner warning:
"Wir werden deinen Vikunja-Account am 7. Sep. 2023 10:28:08 (vor 4 Tagen) löschen"
(it says, account will be deleted 4 days ago)

I am using docker compose.

Vikunja Frontend Version

0.21.0

Vikunja API Version

0.21.0

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

No response

In your database, what is the result of the following query?

select id, deletion_scheduled_at, deletion_last_reminder_sent from users where username = '<your username>';

this gives me:

"deletion_scheduled_at":         '2023-09-07 08:28:08',
"deletion_last_reminder_sent":   '2023-09-14 09:00:00'

👍 Encountered this issue as well

Does your account have a default project set?

I created this user to see what a new user can see in vikunja. I did not configure any setting.
When I go to settings it says "Inbox" for default project

I guess that's the cause of the issue. It will not allow you to remove the project when it is set as the default project of a user. This fails to take into account the deletion of a user will also delete all of their projects.

The problem is already kind of fixed in the next version (current unstable) when deleting users via the CLI, I'll take a look to make sure this also works when a user self-requests the deletion of their account.

Checked again, this should not be a problem anymore. Please check with the last unstable build to see if the problem went away.