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

Fix login error when two factor is disabled #63

Merged
merged 1 commit into from
Sep 1, 2022
Merged

Conversation

Froggi
Copy link
Contributor

@Froggi Froggi commented Sep 1, 2022

When 2fa is disabled the response object is inside an extra level called "successfulLogin". Also security token was not saved as it was when using 2fa.

@Qluxzz Qluxzz merged commit 4878ab7 into Qluxzz:master Sep 1, 2022
@Qluxzz
Copy link
Owner

Qluxzz commented Sep 1, 2022

Looks good! Thanks for contributing!

@jonatanj
Copy link
Contributor

@Qluxzz: The README.md says "Since May 2018 two-factor authentication is required to log in" but then I noticed the non-2FA parts of avanza.py which led me to this PR from 2022. So 2FA is not required after all or what am I missing? Has the requirement changed over time? I thought once you go 2FA you don't go back :)

@Froggi
Copy link
Contributor Author

Froggi commented Jan 30, 2025

@jonatanj I am unsure about the requirement, but I have a business account with Avanza which I still can login without 2fa. Maybe they have different rules for businesses. But that was the reason I needed this PR.

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

Successfully merging this pull request may close these issues.

3 participants