diff options
author | Stefan Melmuk <[email protected]> | 2024-01-31 22:31:22 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-01-31 22:31:22 +0100 |
commit | 0b2383ab56ea1714833ebbc3ffa0e65eeb5cd0ba (patch) | |
tree | 938e6dae5f2fbaeceef3708f898c72b60a4e481d | |
parent | ad1d65bdf8a15d3bc1eac076ab4ab394777204ee (diff) | |
download | vaultwarden-0b2383ab56ea1714833ebbc3ffa0e65eeb5cd0ba.tar.gz vaultwarden-0b2383ab56ea1714833ebbc3ffa0e65eeb5cd0ba.zip |
fix push device registration (#4297)
don't try to register a push device when the device is new
it will be registered when the push token is saved
fixes #4296
-rw-r--r-- | src/api/identity.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/api/identity.rs b/src/api/identity.rs index 6f1155bb..9f3cd1bf 100644 --- a/src/api/identity.rs +++ b/src/api/identity.rs @@ -268,7 +268,9 @@ async fn _password_login( } // register push device - register_push_device(&mut device, conn).await?; + if !new_device { + register_push_device(&mut device, conn).await?; + } // Common // --- |