bymayo/delete-account 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bymayo/delete-account

Composer 安装命令:

composer require bymayo/delete-account

包简介

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

README 文档

README

⚠️ 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).

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.

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).

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.

Config

Navigate to Settings -> Plugins -> Delete Account -> Settings to customise the config settings.

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

Templating

You can simply output the form in your account templates by using the following method:

{{ 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.

You can optionally grab settings from the plugin:

{{ 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.

统计信息

  • 总下载量: 5.23k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 12
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-04-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固