diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-04-11 20:19:14 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-04-11 20:19:14 -0400 |
commit | 91d1d1890bdc3ee75b69e00d5368c5b29a4f461c (patch) | |
tree | 3b9c0aad5f67c9093de6f11be94b94207df95f4c /src/bin/rbw-agent | |
parent | ff76de77056d8d0688fa86564599be96b1ee81c0 (diff) | |
download | rbw-91d1d1890bdc3ee75b69e00d5368c5b29a4f461c.tar.gz rbw-91d1d1890bdc3ee75b69e00d5368c5b29a4f461c.zip |
automatically sync on login
Diffstat (limited to 'src/bin/rbw-agent')
-rw-r--r-- | src/bin/rbw-agent/actions.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/rbw-agent/actions.rs b/src/bin/rbw-agent/actions.rs index 374a0c3..66d732f 100644 --- a/src/bin/rbw-agent/actions.rs +++ b/src/bin/rbw-agent/actions.rs @@ -29,9 +29,11 @@ pub async fn login( db.iterations = Some(iterations); db.protected_key = Some(protected_key); db.save_async(&email).await.unwrap(); - } - respond_ack(sock).await; + sync(sock).await; + } else { + respond_ack(sock).await; + } } pub async fn unlock( |