1
0
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:
Kyle Spearrin
2016-06-21 22:17:31 -04:00
parent a07a682831
commit 0e6fd21805
4 changed files with 7 additions and 1 deletions

View File

@ -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);
}
}