diff options
author | Asger Hautop Drewsen <asgerdrewsen@gmail.com> | 2020-10-15 14:45:27 +0200 |
---|---|---|
committer | Asger Hautop Drewsen <asgerdrewsen@gmail.com> | 2020-10-15 14:45:27 +0200 |
commit | 6435006bae7160716bdaf01436cea66347752caa (patch) | |
tree | b76f2dcb9b4c93136a52ff4e77d69e3d56cbe36c /src/bin | |
parent | 921dd17da84d4ae85d142f8b13e8098869883775 (diff) | |
download | rbw-6435006bae7160716bdaf01436cea66347752caa.tar.gz rbw-6435006bae7160716bdaf01436cea66347752caa.zip |
Zero-pad auth code
Diffstat (limited to 'src/bin')
-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 b2f64a3..bd1b1c2 100644 --- a/src/bin/rbw/commands.rs +++ b/src/bin/rbw/commands.rs @@ -1435,7 +1435,7 @@ fn remove_db() -> anyhow::Result<()> { fn generate_totp(secret: &str) -> anyhow::Result<String> { Ok(format!( - "{}", + "{:06}", oath::totp_raw_now( &base32::decode( base32::Alphabet::RFC4648 { padding: false }, |