1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

Changed query for device to include userId (#2415)

(cherry picked from commit 5e3f6db64b)
(cherry picked from commit 19916a0dcf)
This commit is contained in:
Todd Martin
2022-11-16 10:29:09 -05:00
committed by GitHub
parent c377a50b9d
commit aa952e11df

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