sio2project / oioioi

GNU General Public License v3.0
160 stars 70 forks source link

Fix ipdnsauth middleware #329

Closed MasloMaslane closed 4 months ago

MasloMaslane commented 5 months ago

Previously, when IP authentication was enabled, the user was logged in on every request. This caused the csrf token to change on every request, so all forms were failing because of an invalid csrf token. Now the user is only logged in if they weren't logged in previously.