querylab / lazywarden

Automatic Bitwarden Backup
https://lazywarden.com
MIT License
611 stars 15 forks source link

Fix login with TOTP when multiple 2fa methods are available #13

Closed pschmitt closed 2 weeks ago

pschmitt commented 3 weeks ago

If there are multiple 2FA methods available, the bw cli will prompt for which one to use. This essentially made logins impossible.

Rather than trying to fix this expect, which will surely age poorly, I implemented it using --method 0 --code TOTP_TOKEN.

Ref:

querylab commented 2 weeks ago

@pschmitt I just tested it, and it works perfectly, thank you very much for your help!