doy / rbw

unofficial bitwarden cli
https://git.tozt.net/rbw
Other
581 stars 83 forks source link

Add support for 2FA-method 'Email'. #111

Closed Necoro closed 1 year ago

Necoro commented 1 year ago

Generalize the two_factor function to allow for different Providers. The login function now holds a list of supported providers that it tests in turn. The list should probably adhere to https://bitwarden.com/help/setup-two-step-login/#using-multiple-methods.

Closes #90.

NB: This is the first time I write Rust code, so please review.