Recovering of deleted account

Description

Some users want to recover their account for various reasons. There are some limitations to what can be recovered. see #684 (closed) (closed)

Impact

Ppl who want to restore their account: Potentially all fs.

Proposal

The process for recovery could be similar to "lost passwort" steps. So please

  • Create a seperate page, where user has to enter the e-mail of the account, that is going to be recovered.
  • the page has the info: Quiz won't be restored, Verification won't be restored
  • If they click on the 'send' button, the system should check if there is a red card, that would prevent the user from restoring the profile. Then
  • There has to be a check, if the email is a valid one, but no check if the email is/has been part of the database.
  • A time-limitation should be set (after three tries: wait for 1 minute). if no red card is there, user gets an e-mail to the inserted account with a seeded string.
  • If user klicks on the 'reactivate account' link: "the last state of the fs_archive table of the latest account connected to that email is restored to fs_foodsaver" ( So that if a user had multiple accounts with the same address, just the latest one is restored ... Quiz won't be restored, Verification won't be restored)
  • make a new field in fs_foodsaver to store the hash for the account recovery link.
Edited by Jonathan Steinker