Web login requires logging in twice from a clean session
TapGhoul
Reproduction steps:
- Enter username and password
- Enter 2FA (code generator in this case)
- Get redirected back to login
- Enter username and password again
- Actually be logged in
Log In
Fusl
I believe this is caused by a combination of the API incorrectly responding with a 401 instead of a 403 (or any other 4xx error code) when it's asking for 2FA and the website treating a 401 as a "clear the auth cookie" signal.