Is there a opportunity for the users to delete their accounts on their own?

Jörg Saathoff Posted in Component Development 6 years ago

Hi,

as Administrator i am able to delete Users on the Adminpage. But i would like to have the opportunity for the Users themselves to delete their Accounts if they want to.
A Component for this would be nice :)

Regards

Jörg

Replies
German Jörg Saathoff Replied 6 years ago

Hi Arsalan,

thank you for your tip. But i only have basic Knowledge of programming php.
Can you tell me, how to start this?
Thanks for your Support.

Regards from Germany.

Indonesian Arsalan Shah Replied 6 years ago

Just see the poke component (for settingup a new link in user profile) you can create new action that allows users to delete their account (you can copy contents of administrator action file) further you'll need to make sure you can able to delete their account only

  1. See OssnPoke
  2. See how it add menu in profile
  3. Create your component that add menu in profile called delete account
  4. Create new action in your component
  5. You can use the action file actions\administrator\user\delete.php