diff --git a/src/api/identity.rs b/src/api/identity.rs index 6f1155bb1f..9f3cd1bf89 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 // ---