idurar / idurar-erp-crm

Free Open Source ERP CRM Accounting Invoicing Software | Node Js React
https://cloud.idurarapp.com
GNU Affero General Public License v3.0
6.56k stars 2.02k forks source link

i Want to delete my account but i can't. #1182

Open ScriptShah opened 1 month ago

ScriptShah commented 1 month ago

Describe the bug i have sign up to the Idurar and i want to delete my account but i can't.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'setting'
  2. Click on 'admin'
  3. Click on 'your account three dots '
  4. Click on 'delete '
  5. Click on 'Ok '
  6. See error

Expected behavior

the expected behavior is to delete my account and log me out from the application. Screenshots

image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

ScriptShah commented 1 month ago

I want to work on this issue please assign me.

yashp4858 commented 1 month ago

Hey @ScriptShah this is not a bug, I think so because you can read the error message as well that you are an admin. So you can't delete the admin.

If you still want to delete just try to create a new admin or assign an admin role to another user.

Please correct me if I am wrong.

ScriptShah commented 1 month ago

Hey @yashp4858 thanks for the feedback! I understand your point, but from a user experience perspective, it might be more intuitive to allow the user to delete their account and log them out automatically, even if they are an admin. Requiring a user to create a new admin account just to delete their original account adds unnecessary friction, especially if the user simply wants to leave the platform.

A potential improvement could be allowing admins to delete their own accounts, with the application handling reassignment of admin rights if necessary (e.g., prompting to assign another admin before deletion). This would streamline the process and still maintain proper account management within the application.

Let me know your thoughts!