aboutsummaryrefslogtreecommitdiffstats
path: root/src/api.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api.rs')
-rw-r--r--src/api.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/api.rs b/src/api.rs
index 9a58f9e..4c4008e 100644
--- a/src/api.rs
+++ b/src/api.rs
@@ -702,12 +702,6 @@ struct CiphersPutReq {
}
#[derive(serde::Serialize, Debug)]
-struct CiphersPutReqLogin {
- username: Option<String>,
- password: Option<String>,
-}
-
-#[derive(serde::Serialize, Debug)]
struct CiphersPutReqHistory {
#[serde(rename = "LastUsedDate")]
last_used_date: String,
@@ -895,6 +889,8 @@ impl Client {
let res = client
.post(&self.identity_url("/connect/token"))
.form(&connect_req)
+ .header("Bitwarden-Client-Name", env!("CARGO_PKG_NAME"))
+ .header("Bitwarden-Client-Version", env!("CARGO_PKG_VERSION"))
.header(
"auth-email",
crate::base64::encode_url_safe_no_pad(email),