aboutsummaryrefslogtreecommitdiffstats
path: root/src/actions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.rs')
-rw-r--r--src/actions.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actions.rs b/src/actions.rs
index 0998abc..f9b1354 100644
--- a/src/actions.rs
+++ b/src/actions.rs
@@ -7,9 +7,9 @@ pub async fn login(
let client =
crate::api::Client::new_self_hosted("https://bitwarden.tozt.net");
- let iterations = client.prelogin(&email).await?;
+ let iterations = client.prelogin(email).await?;
let identity =
- crate::identity::Identity::new(&email, &password, iterations)?;
+ crate::identity::Identity::new(email, password, iterations)?;
let (access_token, _refresh_token, protected_key) = client
.login(&identity.email, &identity.master_password_hash)
@@ -25,7 +25,7 @@ pub async fn unlock(
protected_key: String,
) -> Result<(Vec<u8>, Vec<u8>)> {
let identity =
- crate::identity::Identity::new(&email, &password, iterations)?;
+ crate::identity::Identity::new(email, password, iterations)?;
let protected_key =
crate::cipherstring::CipherString::new(&protected_key)?;