3cn-ecn / nantralPlatform

Nantral Platform is a website project for clubs, events and more in Centrale Nantes
https://nantral-platform.fr
MIT License
20 stars 1 forks source link

[BUG] User data and cache not removed on logout #1187

Open hydrielax opened 3 months ago

hydrielax commented 3 months ago

Describe the bug

When you logout from an account, then login with another account, the data from the previous account is still displayed (user picture profile, buttons to access admin panels...)

To Reproduce

Steps to reproduce the behavior:

  1. Log in with an account
  2. Ensure this account has a profile picture
  3. Logout from the account
  4. Login with another account
  5. The profile picture of the previous user is still there

Expected behavior

All data from logout user should be removed

Ideas

To check: do we call the reset cache queries from react-query to remove all cached data?