User profile: Delete my account
In this ticket we add a tool for any user to "Delete my account" from Genesys.
Dashboard
Add a button "Delete my account" that opens a dialog with:
- description: "After you submit this form we will send you an email with the Account removal link. Clicking that link will bring you back to this website and you will have the final opportunity to change your mind."
- a challenge: the message "To delete your account please type {randomWord} in the text box:" +
<input type="text"
- Buttons Cancel and Send the link.
Account removal
That Account removal link opens a form (similar to Forgot password) with a form for:
- the
key
that was sent in the email - captcha
- Button Remove account
Remove account then makes the final API call with the uuid
+ key
. The endpoint checks if these match and will call archiveUserByToken()
. It will also clear the current security context, reset the session, clear cookies, etc.
When the API call returns 200 OK
, the UI will also log the user out and redirect to the entry page.
API
The API needs to generate a token + key (like we do for forgot password) and use a email templates (from CMS Article
).