1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

Add ability to delete Maybe account (#698)

* Build out user deactivation and purging workflows

* Add i18n translations for user deletion

* Add tests for user deletion

* Fix lint issue
This commit is contained in:
Josh Brown 2024-04-30 16:40:31 +01:00 committed by GitHub
parent 55cb1ae5bd
commit 19ee773d9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 128 additions and 8 deletions

View file

@ -10,3 +10,7 @@ en:
last_name: Last Name
password: Password
password_confirmation: Password Confirmation
errors:
user:
cannot_deactivate_admin_with_other_users: Admin cannot delete account while
other users are present. Please delete all members first.

View file

@ -82,8 +82,14 @@ en:
update:
success: Preferences updated successfully.
profiles:
destroy:
success: Account deleted successfully.
show:
add_member: Add Member
confirm_delete:
body: Are you sure you want to permanently delete your account? This action
is irreversible.
title: Delete account?
danger_zone_title: Danger Zone
delete_account: Delete Account
delete_account_warning: Deleting your account will permanently remove all

View file

@ -4,6 +4,7 @@ en:
confirm_modal:
accept: Confirm
body_html: "<p>You will not be able to undo this decision</p>"
cancel: Cancel
title: Are you sure?
notification:
dismiss: Dismiss

View file

@ -11,7 +11,7 @@ Rails.application.routes.draw do
resource :password
namespace :settings do
resource :profile, only: %i[show update]
resource :profile, only: %i[show update destroy]
resource :preferences, only: %i[show update]
resource :notifications, only: %i[show update]
resource :billing, only: %i[show update]