aboutsummaryrefslogtreecommitdiffstats
path: root/src/actions.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-10-27 04:26:36 -0400
committerJesse Luehrs <doy@tozt.net>2021-10-27 04:26:36 -0400
commiteb5e4ea7bcc3008a8d06da6884ee9713f8df0034 (patch)
tree4d9aebdf81e50e5871b2628e1e156d17bf19487f /src/actions.rs
parent94331dfaba1e062d3300e4ee18b63371a2e145cb (diff)
downloadrbw-eb5e4ea7bcc3008a8d06da6884ee9713f8df0034.tar.gz
rbw-eb5e4ea7bcc3008a8d06da6884ee9713f8df0034.zip
remove unused value
Diffstat (limited to 'src/actions.rs')
-rw-r--r--src/actions.rs12
1 files changed, 2 insertions, 10 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<crate::api::TwoFactorProviderType>,
-) -> 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(