2024-CMPU9010-GROUP-3 / magpie

Group 3 project for the TU Dublin ASD/DS masters course
GNU Affero General Public License v3.0
5 stars 0 forks source link

Implements workaround for race condition with login redirect #399

Closed ankraus closed 2 weeks ago

ankraus commented 2 weeks ago

Description

This PR is a workaround for what I believe to be a race condition between the redirect and setting the session token in the session context. I tested this on my machine; previously the login was very flaky and would not redirect ~75% of the time. With this fix, the redirect didn't fail once in over 20 tries with three different browsers. But it remains to be seen if this will translate to the production environment.

Fixes #398

Type of change

Please select the option that best describes the changes made:

Changes