1
0
mirror of https://github.com/bitwarden/server synced 2026-02-13 06:53:56 +00:00

Changed query for device to include userId

This commit is contained in:
Todd Martin
2022-11-10 10:29:11 -05:00
parent a9466451f0
commit 5e3f6db64b

View File

@@ -130,7 +130,7 @@ public class AuthRequestsController : Controller
throw new DuplicateAuthRequestException();
}
var device = await _deviceRepository.GetByIdentifierAsync(model.DeviceIdentifier);
var device = await _deviceRepository.GetByIdentifierAsync(model.DeviceIdentifier, userId);
if (device == null)
{
throw new BadRequestException("Invalid device.");