[GH-ISSUE #83] Delete user account doesn't work #5949

Closed
opened 2026-04-20 16:24:25 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @PulsarFX on GitHub (Sep 10, 2023).
Original GitHub issue: https://github.com/go-vikunja/vikunja/issues/83

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

Originally created by @PulsarFX on GitHub (Sep 10, 2023). Original GitHub issue: https://github.com/go-vikunja/vikunja/issues/83 ### 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](https://github.com/go-vikunja/api/assets/4960210/fd5867c3-c852-45fd-8992-3154f6419109) 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_
GiteaMirror added the bug label 2026-04-20 16:24:25 -05:00
Author
Owner

@kolaente commented on GitHub (Sep 13, 2023):

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>';
<!-- gh-comment-id:1717550162 --> @kolaente commented on GitHub (Sep 13, 2023): In your database, what is the result of the following query? ```sql select id, deletion_scheduled_at, deletion_last_reminder_sent from users where username = '<your username>'; ```
Author
Owner

@PulsarFX commented on GitHub (Sep 14, 2023):

this gives me:

"deletion_scheduled_at":         '2023-09-07 08:28:08',
"deletion_last_reminder_sent":   '2023-09-14 09:00:00'
<!-- gh-comment-id:1720145044 --> @PulsarFX commented on GitHub (Sep 14, 2023): this gives me: ``` "deletion_scheduled_at": '2023-09-07 08:28:08', "deletion_last_reminder_sent": '2023-09-14 09:00:00' ```
Author
Owner

@mgmorcos commented on GitHub (Sep 17, 2023):

👍 Encountered this issue as well

<!-- gh-comment-id:1722567913 --> @mgmorcos commented on GitHub (Sep 17, 2023): 👍 Encountered this issue as well
Author
Owner

@kolaente commented on GitHub (Sep 27, 2023):

Does your account have a default project set?

<!-- gh-comment-id:1737688409 --> @kolaente commented on GitHub (Sep 27, 2023): Does your account have a default project set?
Author
Owner

@PulsarFX commented on GitHub (Sep 29, 2023):

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

<!-- gh-comment-id:1740725381 --> @PulsarFX commented on GitHub (Sep 29, 2023): 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
Author
Owner

@kolaente commented on GitHub (Sep 29, 2023):

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.

<!-- gh-comment-id:1741247378 --> @kolaente commented on GitHub (Sep 29, 2023): 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.
Author
Owner

@kolaente commented on GitHub (Sep 29, 2023):

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

<!-- gh-comment-id:1741389918 --> @kolaente commented on GitHub (Sep 29, 2023): Checked again, this should not be a problem anymore. Please check with the last unstable build to see if the problem went away.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#5949