Skip to content

Commit

Permalink
Merge pull request #189 from illfygli/main
Browse files Browse the repository at this point in the history
fix `rbw code: totp secret was not valid base32`
  • Loading branch information
doy authored Jul 3, 2024
2 parents 741a72c + 7fc0fc9 commit 4056f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/rbw/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2114,7 +2114,7 @@ struct TotpParams {
fn decode_totp_secret(secret: &str) -> anyhow::Result<Vec<u8>> {
base32::decode(
base32::Alphabet::Rfc4648 { padding: false },
&secret.replace(' ', ""),
&secret.replace(' ', "").to_uppercase(),
)
.ok_or_else(|| anyhow::anyhow!("totp secret was not valid base32"))
}
Expand Down

0 comments on commit 4056f9a

Please sign in to comment.