Allowing the site members to cancel/delete their accounts

We would like to allow the users (site members) to cancel/delete their account, as in the following scenarios:

# Scenario 1

As a user who wants to delete my account and stored information
Given I have signed in to the system
When I go to My Profile page
And I scroll down to the end of My Profile page
Then I should see the button "Cancel my account" in Red
When I click that button
Then I should see a confirmation box asking for my password and consent
When I fill in that box with my password and consent
And I click the "Confirm" button
Then I should be signed out of the system
And I should not be able to sign in to the system using my old credentials

Scenario 2

Given I am a user who hasn't signed in to the system for over 2 years
When I sign in with my credentials
Then I should not be able to sign in to the system

What we have found so far is that we can manually delete the site members / contacts in the Dashboard, but are there ways to support the above features?

2 Likes

Not at the moment because there is no API to the Wix Contacts App. What you have to do is to create your own member data collection and your own sign in and sign up. You could make members not possible to login to your site like you want but the account will still be alive behind the scenes. Like Facebook, you can ask them to delete your account and then you can’t login but your account is never deleted.