Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting any account deletes the logged-in admin account. #1624

Closed
jakobbouchard opened this issue Oct 31, 2022 · 4 comments
Closed

Deleting any account deletes the logged-in admin account. #1624

jakobbouchard opened this issue Oct 31, 2022 · 4 comments
Labels
bug Something isn't working fixed in dev Fixed in the dev branch

Comments

@jakobbouchard
Copy link

So I was trying to delete a user from my umami install, and when I clicked delete, it deleted my own account instead, causing me to lose the websites I had under my account. It wasn't super important, so it wasn't too bad, and the session still worked, so I could recreate a non-admin account and give it admin rights by connecting to the database.

I created a second admin account to verify it didn't delete the first admin account, but it seems that it deletes the logged in admin account, no matter the account that is sent to the API.

@jakobbouchard
Copy link
Author

Also, once the account is deleted, the session still works, oddly enough, even after closing the browser. The account can still add websites under any account, other than the admin ones, and can still view any stats from any websites.

@briancao briancao added the bug Something isn't working label Nov 1, 2022
@briancao
Copy link
Collaborator

briancao commented Nov 1, 2022

Confirming bug. Will have a fix out by tomorrow.

@jakobbouchard
Copy link
Author

Thanks, really appreciate it 😅 I'm happy that I didn't have anything important on there haha

@briancao briancao added the fixed in dev Fixed in the dev branch label Nov 1, 2022
@mikecao
Copy link
Collaborator

mikecao commented Nov 1, 2022

Fixed in v1.39.4.

@mikecao mikecao closed this as completed Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in dev Fixed in the dev branch
Projects
None yet
Development

No branches or pull requests

3 participants