2017 © Pedro Peláez
 

craft-plugin delete-account

Allows users to delete their own account within Twig templates (Front end).

image

bymayo/delete-account

Allows users to delete their own account within Twig templates (Front end).

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 3 Versions
  • 725 % Grown

The README.md

⚠️ Looking for a Craft 4 version? Delete Account plugin is available for Craft 4, but has been completely rebuilt as a new plugin, with more features called Porter (https://plugins.craftcms.com/porter)., (*1)

, (*2)

Delete Account for Craft CMS 3

Delete Account is a Craft CMS plugin that allows users to delete their own account within Twig templates (Front end). This also adheres to GDPR rules regarding users being able to manage their own data and delete their account., (*3)

NOTE: This only removes the users account, and doesn't remove any data they previously submitted via a Commerce order or 3rd Party plugin (Yet)., (*4)

Features

  • Set a keyword that needs to be correctly entered before accounts are deleted (Stops accidental deletion).
  • Disallow admins from deleting their accounts on front end.

Requirements

  • Craft CMS 3.x
  • MySQL (No PostgreSQL support)

Install

  • Install with Composer via composer require bymayo/delete-account from your project directory
  • Install the plugin in the Craft Control Panel under Settings > Plugins

You can also install the plugin via the Plugin Store in the Craft Admin CP., (*5)

Config

Navigate to Settings -> Plugins -> Delete Account -> Settings to customise the config settings., (*6)

Or, copy the src/config.php top your projects config folder and rename the file delete-account.php., (*7)

Templating

You can simply output the form in your account templates by using the following method:, (*8)

{{ craft.deleteAccount.form }}

If you want more control you can take the form template from bymayo/deleteaccount/src/templates/form and place this in your own template folder. Then include this with the {% include %} twig tag., (*9)

You can optionally grab settings from the plugin:, (*10)

{{ craft.deleteAccount.settings('redirect') }}

Roadmap

  • Setting to disallow users with access to CP from deleting their accounts.
  • Setting to send an email to the user after deletion.
  • Delete all user related Commerce orders.
  • Delete all user related data in 3rd party plugins.

The Versions

25/05 2018

dev-master

9999999-dev

Allows users to delete their own account within Twig templates (Front end).

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft delete account

25/05 2018

1.0.1

1.0.1.0

Allows users to delete their own account within Twig templates (Front end).

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft delete account

25/04 2018

1.0.0

1.0.0.0

Allows users to delete their own account within Twig templates (Front end).

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft delete account