diff options
Diffstat (limited to 'src/api.rs')
-rw-r--r-- | src/api.rs | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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), |