mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 00:52:49 -05:00
Updates for devices
This commit is contained in:
@ -74,6 +74,7 @@ namespace Bit.Core.Identity
|
||||
var existingDevice = await _deviceRepository.GetByIdentifierAsync(device.Identifier, user.Id);
|
||||
if(existingDevice == null)
|
||||
{
|
||||
device.UserId = user.Id;
|
||||
await _deviceRepository.CreateAsync(device);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user