Skip to content

Commit

Permalink
fix qr code login with MFA
Browse files Browse the repository at this point in the history
  • Loading branch information
bain3 committed Jan 17, 2025
1 parent a6b8ae7 commit b980f87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pronotepy/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,11 @@ def qrcode_login(
log.warning("couldn't get account security mode, ignoring...")
return client

client._do_2fa(False, mode > 1, account_pin, device_name)
return cls.token_login(
**client.export_credentials(),
account_pin=account_pin,
device_name=device_name,
)

return client

Expand Down

0 comments on commit b980f87

Please sign in to comment.