From d0ae77e431d2925408476a5f683a4a2769ec8058 Mon Sep 17 00:00:00 2001 From: crockwave Date: Sat, 27 Jun 2020 18:21:06 -0500 Subject: [PATCH] Began editing features/security to include Deactivate Account feature --- app/soapbox/features/security/index.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/soapbox/features/security/index.js b/app/soapbox/features/security/index.js index c3d5fe41f..983770136 100644 --- a/app/soapbox/features/security/index.js +++ b/app/soapbox/features/security/index.js @@ -19,6 +19,16 @@ import { } from 'soapbox/actions/auth'; import { showAlert } from 'soapbox/actions/alerts'; +/* +Security settings page for user account +Routed to /auth/edit +Includes following features: +- Change Email +- Change Password +- Sessions +- Deactivate Account +*/ + const messages = defineMessages({ heading: { id: 'column.security', defaultMessage: 'Security' }, submit: { id: 'security.submit', defaultMessage: 'Save changes' }, @@ -35,6 +45,10 @@ const messages = defineMessages({ emailHeader: { id: 'security.headers.update_email', defaultMessage: 'Change Email' }, passwordHeader: { id: 'security.headers.update_password', defaultMessage: 'Change Password' }, tokenHeader: { id: 'security.headers.tokens', defaultMessage: 'Sessions' }, + deactivateHeader: { id: 'security.headers.deactivate', defaultMessage: 'Deactivate Account' }, + deactivateText: { id: 'security.text.deactivate', defaultMessage: 'Deactivate your account. \n This action will hide your profile and your posts on this server. \n \ + However, your account will not be deleted and your data will not be purged. \n In addition, any of your data that was distributed to other servers will remain on those \ + servers.' }, }); export default @injectIntl