ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Allow user to remove account

April 27, 2010 5:42pm

Subscribe [1]
  • #1 / Apr 27, 2010 5:42pm

    theVitalPath

    23 posts

    Hi,

    So we have a standalone registration form and an account page for registered users to view their profile, history, etc…not using the default Member page of EE though.

    Is there a standalone form that we can get a registered member to the site to submit that will allow them to delete their account?

    Thanks!
    Dan

  • #2 / Apr 27, 2010 5:58pm

    theVitalPath

    23 posts

    Nevermind…figured it out! 😊 Should have just tried a little harder before posting.

    For anyone else interested:

    <form id=‘member_delete_form’ method=“post” action=“http://www.yourdomain.com/”><br /> <div class=‘hiddenFields’><br /> <input type=“hidden” name=“XID” value=”{XID_HASH}” /><br /> <input type=“hidden” name=“ACT” value=“16” /><br /> <input type=“hidden” name=“site_id” value=“1” /><br /> You must type in your password to remove your account:</p> <p><input type=“password” style=“width:80%” class=“input” name=“password” size=“20” value=”” maxlength=“32” /></p> <p><br /> Are you sure you wish to delete your account?  All purchases and other content associated with your account will also be deleted. <strong>THIS ACTION CANNOT BE UNDONE</strong>.</p> <p><br /> <input type=“submit” class=“submit” value=“Submit” />

    For the ACT id, you can also generate that through PHP instead of hard-coding it.

    Cheers!
    Dan

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases