cs50 / check50

This is check50, a command-line program with which you can check the correctness of your programs.
GNU General Public License v3.0
401 stars 268 forks source link

Everything is an InvalidSlug once you login with your password with two-factor auth enabled #188

Open Jelleas opened 5 years ago

Jelleas commented 5 years ago

Once you login with your password instead of an access token with two-factor authentication, check50 will tell you to use an access token, but will also keep you logged in (credentials stay cached). From that moment, every slug will fail and lib50 interprets this as an invalid slug. That means you have to manually --logout before you are able to use check50 again.

Jelleas commented 5 years ago

Relevant vid: https://www.youtube.com/watch?v=AbSehcT19u0

cmlsharp commented 5 years ago

I can't replicate this... Nor do I see how this could be possible based on the code in lib50. This error https://github.com/cs50/lib50/blob/3b542683587183abbc06a3eedffe6b68db6702c4/lib50/_api.py#L865 should be caught here https://github.com/cs50/lib50/blob/3b542683587183abbc06a3eedffe6b68db6702c4/lib50/_api.py#L891 which triggers a logout.