diff options
Diffstat (limited to 'src/api.rs')
-rw-r--r-- | src/api.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -119,12 +119,12 @@ impl Client { pub async fn login( &self, email: &str, - master_password_hash: &[u8], + master_password_hash: &crate::locked::PasswordHash, ) -> Result<(String, String, String)> { let connect_req = ConnectReq { grant_type: "password".to_string(), username: email.to_string(), - password: base64::encode(&master_password_hash), + password: base64::encode(master_password_hash.hash()), scope: "api offline_access".to_string(), client_id: "desktop".to_string(), device_type: 8, |