diff options
author | arch <arch@local> | 2021-05-15 21:38:28 +0200 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-07-05 15:26:21 -0400 |
commit | 391c8d533213fcc66cd7e60b736969d5fd951ae5 (patch) | |
tree | cc26401d003a22b0681d9c7bcc6366985fdef697 /src | |
parent | 0c35b70808b69f64da3dd1fa1f0e0f90c860d75d (diff) | |
download | rbw-391c8d533213fcc66cd7e60b736969d5fd951ae5.tar.gz rbw-391c8d533213fcc66cd7e60b736969d5fd951ae5.zip |
fix #56 totp with space
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/rbw/commands.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/rbw/commands.rs b/src/bin/rbw/commands.rs index ee767c7..c1f9291 100644 --- a/src/bin/rbw/commands.rs +++ b/src/bin/rbw/commands.rs @@ -1494,7 +1494,7 @@ fn parse_totp_secret(secret: &str) -> anyhow::Result<Vec<u8>> { } else { secret.to_string() }; - base32::decode(base32::Alphabet::RFC4648 { padding: false }, &secret_str) + base32::decode(base32::Alphabet::RFC4648 { padding: false }, &secret_str.replace(" ", "")) .ok_or_else(|| anyhow::anyhow!("totp secret was not valid base32")) } |