mirror of
https://github.com/bitwarden/server.git
synced 2024-12-24 17:17:40 +01:00
Set Id property on existing devices so we don't try to create a new one instead of updating existing. (#2420)
This commit is contained in:
parent
3bece3c3ad
commit
02e4b10ae8
@ -562,6 +562,10 @@ public abstract class BaseRequestValidator<T> where T : class
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
deviceFromRequest.Id = existingDevice.Id;
|
||||||
|
}
|
||||||
|
|
||||||
deviceFromRequest.UserId = user.Id;
|
deviceFromRequest.UserId = user.Id;
|
||||||
await _deviceService.SaveAsync(deviceFromRequest);
|
await _deviceService.SaveAsync(deviceFromRequest);
|
||||||
|
Loading…
Reference in New Issue
Block a user