onelocalorg / ONE-mobile

1 stars 0 forks source link

Deleted account, couldn't create again from same email. #228

Open cameronmurdock opened 4 months ago

cameronmurdock commented 4 months ago

After having deleted an account, google sign in just returns to login screen, and self signup throws error "email already taken".

shawnlauzon commented 4 months ago

@cameronmurdock Yes, this is how it was originally coded: that if a user is deleted, it's just marked as deleted (not actually deleted), and so if you try to create it again, it's already taken.

See #139

How do you think it should work, when someone deletes a user? Should it actually delete the user? And should anything be done with everything they created? If it doesn't delete their data, what should happen if a user tries to view this user's profile? And if the data isn't deleted, what should happen when a user creates a new user with the same email? Perhaps none of this is necessary for this issue, but might want to consider them all together.

And is this something for this release?

grigb commented 3 weeks ago

I think we need a way to delete and create accounts again while testing. In the future, it might make sense to retain the data for integrity of the relationships in the db , but for now, I think just destroying their posts and accounts would be OK.