diff options
author | Daniel Mueller <deso@posteo.net> | 2019-01-05 16:04:49 -0800 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-01-05 16:04:49 -0800 |
commit | d9adac05dfa5de83465fde3479df4fd898ebd8bd (patch) | |
tree | 3bcb5585b4f821250276d6bf1eadd05f1748d016 /nitrocli/src/commands.rs | |
parent | bbb54f26c6101225a4f79f2f7f89cf5d71a62dd1 (diff) | |
download | nitrocli-d9adac05dfa5de83465fde3479df4fd898ebd8bd.tar.gz nitrocli-d9adac05dfa5de83465fde3479df4fd898ebd8bd.tar.bz2 |
Update nitrokey crate to 0.3.0
This change updates the nitrokey crate to version 0.3.0.
Import subrepo nitrokey/:nitrokey at 3593df8844b80741e2d33c8e5af80e65760dc058
Diffstat (limited to 'nitrocli/src/commands.rs')
-rw-r--r-- | nitrocli/src/commands.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/nitrocli/src/commands.rs b/nitrocli/src/commands.rs index e125f17..ac2bbf1 100644 --- a/nitrocli/src/commands.rs +++ b/nitrocli/src/commands.rs @@ -411,10 +411,13 @@ pub fn otp_get( let device = get_device(ctx)?; if algorithm == args::OtpAlgorithm::Totp { device - .set_time(match time { - Some(time) => time, - None => get_unix_timestamp()?, - }) + .set_time( + match time { + Some(time) => time, + None => get_unix_timestamp()?, + }, + true, + ) .map_err(|err| get_error("Could not set time", err))?; } let config = device |