Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jelleas opened this issue Oct 10, 2019 · 2 comments

Comments

@Jelleas
Copy link
Contributor

Jelleas commented Oct 10, 2019

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
Copy link
Contributor Author

Jelleas commented Oct 10, 2019

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

@cmlsharp
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants