Allow merging of user accounts
Description
Users may create multiple accounts by accident, and then realize afterwards they really wanted to use their existing account instead. This is especially true if the user logs in to an Appsemble app using a third party OAuth2 provider, and later realizes they weren’t logged in to Appsemble Studio at the time.
Users should be able to merge two accounts. Both accounts should agree with the merge.
Let’s say the account requesting the merge is the initiator. The account accepting the merge is the approver.
Steps:
- initiator navigates to dangerous account actions.
- initiator enters an email address.
- The user account that matches the email address, becomes approver.
- approver receives an email with a one time link.
- approver needs to be logged in as approver. Otherwise, the link is considered invalid.
- approver accepts or denies the request.
- If accepted, all references to initiator will be updated to reference approver instead. initiator will be deleted.
The last step needs to happen in one transaction.
Requirements
-
Dangerous account actions screen -
Merge request screen -
One time acceptance screen -
Account merge handler. -
Write docs
Edited by Kees van den Broek