From eb5e4ea7bcc3008a8d06da6884ee9713f8df0034 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 27 Oct 2021 04:26:36 -0400 Subject: remove unused value --- src/actions.rs | 12 ++---------- src/bin/rbw-agent/actions.rs | 9 +-------- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/src/actions.rs b/src/actions.rs index 0d8c88d..03cd160 100644 --- a/src/actions.rs +++ b/src/actions.rs @@ -5,7 +5,7 @@ pub async fn login( password: &crate::locked::Password, two_factor_token: Option<&str>, two_factor_provider: Option, -) -> Result<(String, String, u32, String, crate::locked::Keys)> { +) -> Result<(String, String, u32, String)> { let config = crate::config::Config::load_async().await?; let client = crate::api::Client::new(&config.base_url(), &config.identity_url()); @@ -22,16 +22,8 @@ pub async fn login( two_factor_provider, ) .await?; - let master_keys = crate::cipherstring::CipherString::new(&protected_key)? - .decrypt_locked_symmetric(&identity.keys)?; - Ok(( - access_token, - refresh_token, - iterations, - protected_key, - crate::locked::Keys::new(master_keys), - )) + Ok((access_token, refresh_token, iterations, protected_key)) } pub async fn unlock( diff --git a/src/bin/rbw-agent/actions.rs b/src/bin/rbw-agent/actions.rs index 77ff178..cb30551 100644 --- a/src/bin/rbw-agent/actions.rs +++ b/src/bin/rbw-agent/actions.rs @@ -46,7 +46,6 @@ pub async fn login( refresh_token, iterations, protected_key, - _, )) => { login_success( sock, @@ -148,13 +147,7 @@ async fn two_factor( match rbw::actions::login(email, password, Some(code), Some(provider)) .await { - Ok(( - access_token, - refresh_token, - iterations, - protected_key, - _, - )) => { + Ok((access_token, refresh_token, iterations, protected_key)) => { return Ok(( access_token, refresh_token, -- cgit v1.2.3-54-g00ecf