mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-11-24 08:06:24 +01:00
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
This commit is contained in:
parent
ad1d65bdf8
commit
0b2383ab56
1 changed files with 3 additions and 1 deletions
|
@ -268,7 +268,9 @@ async fn _password_login(
|
||||||
}
|
}
|
||||||
|
|
||||||
// register push device
|
// register push device
|
||||||
|
if !new_device {
|
||||||
register_push_device(&mut device, conn).await?;
|
register_push_device(&mut device, conn).await?;
|
||||||
|
}
|
||||||
|
|
||||||
// Common
|
// Common
|
||||||
// ---
|
// ---
|
||||||
|
|
Loading…
Reference in a new issue