aboutsummaryrefslogtreecommitdiffstats
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
parent94331dfaba1e062d3300e4ee18b63371a2e145cb (diff)
downloadrbw-eb5e4ea7bcc3008a8d06da6884ee9713f8df0034.tar.gz
rbw-eb5e4ea7bcc3008a8d06da6884ee9713f8df0034.zip
remove unused value
-rw-r--r--src/actions.rs12
-rw-r--r--src/bin/rbw-agent/actions.rs9
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<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(
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,