Skip to content

Fix weblogin v2 logic with totp enabled - #400

Merged
RealCLanger merged 3 commits into
pytr-org:masterfrom
Zorgosto:master
Oct 7, 2026
Merged

RealCLanger merged 3 commits into
pytr-org:masterfrom
Zorgosto:master

Conversation

@Zorgosto

@Zorgosto Zorgosto commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

The logic did not wait for the confirmation of the popup in the app so it could never complete authentication

I'm not sure if that is a change in the app but there is a popup that needs to be confirmed for the login to work even with the correct TOTP code. This fixes it, although I'm not 100% sure if the logic is correct for every possibility.

Resume of session also works.

The logic did not wait for the confirmation of the popup in the app so
it could never complete authentication
@Zorgosto

Zorgosto commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

This would probably close #393

@RealCLanger RealCLanger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the code, this makes sense. I can not test it with TOTP but as you report that it helps, let's merge this and wait for feedback.

Thanks for the contribution.

After posting the TOTP code, the flow now also polls the login
process for final in-app confirmation, matching the production code.
@RealCLanger

Copy link
Copy Markdown
Collaborator

There were test failures, added test modifications

@RealCLanger
RealCLanger merged commit 9cb07f5 into pytr-org:master Oct 7, 2026
5 checks passed
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.

2 participants