diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-10-27 20:51:54 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-10-27 21:02:21 -0400 |
commit | 7b95f7b9d84c44ca273c1a1ce7ab62925d4a5def (patch) | |
tree | 5a61f1f41fbe2aeeb2520d83bd292123d7a84fc9 /src/api.rs | |
parent | 9acabc3a7497e3eb3536992212d34f77a649ae16 (diff) | |
download | rbw-7b95f7b9d84c44ca273c1a1ce7ab62925d4a5def.tar.gz rbw-7b95f7b9d84c44ca273c1a1ce7ab62925d4a5def.zip |
use a persistent device id
Diffstat (limited to 'src/api.rs')
-rw-r--r-- | src/api.rs | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -579,6 +579,7 @@ impl Client { pub async fn login( &self, email: &str, + device_id: &str, creds: &crate::locked::HashedLoginCredentials, two_factor_token: Option<&str>, two_factor_provider: Option<TwoFactorProviderType>, @@ -612,9 +613,7 @@ impl Client { client_secret: client_secret .map(|secret| String::from_utf8(secret.to_vec()).unwrap()), device_type: 8, - device_identifier: uuid::Uuid::new_v4() - .to_hyphenated() - .to_string(), + device_identifier: device_id.to_string(), device_name: "rbw".to_string(), device_push_token: "".to_string(), two_factor_token: two_factor_token |