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 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/actions.rs') 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( -- cgit v1.2.3-54-g00ecf