1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -05: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.");