Open peter-tanner opened 2 years ago
You seem to be correct about that... Notice this https://sentry.io/organizations/uwa-system-health-lab/issues/3527123937/?project=6667527&query=is%3Aunresolved
there's an alert of 500 coming from the server because of it
I have first encountered it sometime in #61 ... i would have thought it would fix it
Describe the bug
An error code is shown when logging on in the bottom right corner. This is only meant to show when login is unsuccessful, but every time error 500 is shown briefly regardless of whether the login failed.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Error only shows when login failed
Other
Screenshots If applicable, add screenshots to help explain your problem.
Additional context I think this is due to a second react render occurring, which sends the login token twice. The first time this succeeds but the same token is sent a second time resulting in the error.