doy / rbw

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

Code subcommand doesn't include trailing zero. #31

Closed lukalot closed 3 years ago

lukalot commented 3 years ago

It seems that rbw doesn't include a trailing zero in its code subcommand output.rbw code <name> returns, for example 17368, if the expected code is 017368, and presumably would even return a two digit code if there were four trailing zeros. This is a problem because most applications won't accept an auth code with less than 6 digits, leaving the user to type the trailing zeros manually.

doy commented 3 years ago

this should have been fixed in https://github.com/doy/rbw/pull/25 (included in version 0.5.1) - are you sure you are using the latest version?

lukalot commented 3 years ago

Ah, my mistake, you're correct I wasn't up to date. I thought 5.0 was the latest version for whatever reason. Thanks.