jimmykane / quantified-self

Compare files from various activity trackers
GNU Affero General Public License v3.0
197 stars 25 forks source link

Unable to delete account #207

Open ejain opened 4 years ago

ejain commented 4 years ago

Steps to reproduce:

  1. Choose "Edit" from the menu on https://quantified-self.io/settings.
  2. Check "I want to delete my account".
  3. Click "DELETE MY ACCOUNT".
  4. Conmfirm "I am sure, Yes delete it".

After a while, the following message is shown (and the account remains active):

Error: This operation is sensitive and requires recent authentication. Log in again before retrying this request.

jimmykane commented 4 years ago

Hi @ejain and good morning.

This is a little bit of a technical limitation. You can delete the account if you like to, but you need to logout and login and then directly go and press delete my account.

The thing is that firebase (the platform that Quantified Self uses) in order to allow a user to delete his account , he must have logged in recently in the last 15minutes.

So this problem exists if you are logged in for longer.

Logging out and in again should allow you to delete your account.

That said I understand this is not the best user experience, I'll keep this issue open so I can do some work and make this more user friendly.

Keep me posted if you have any issues.

ejain commented 4 years ago

Thanks, account deletion worked after logging out and back in. Could simply display a message that you must log out and back in if it's been more than 15min since you last logged in?