1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01: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
No known key found for this signature in database
GPG Key ID: 663E7AF5C839BC8F

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.");