code4romania / covid-19-jurnal-medical

Centralization and monitoring of the state of people under auto-isolation with standardized questionnaires
https://dev.stamacasa.ro
Mozilla Public License 2.0
15 stars 52 forks source link

User isn't logged out after deleting the account #504

Closed catileptic closed 4 years ago

catileptic commented 4 years ago

After a user enters their password and clicks the button to delete their account, the application should log them out and redirect them to the landing page.

Right now, on Firefox, the user deletes their account and the application does not log them out afterwards. It would seem like, on Safari, the application does log them out - but then again, I'm probably one of the few unfortunate ones still using Safari.

If I log myself out, on Firefox, and then try to log back in with the credentials tied to the account I just deleted, the log in fails - as expected.

Let's fix this by logging the user out after they delete their account and redirecting them to the landing page.

idormenco commented 4 years ago

on it