From 5e3f6db64bda449a8647ac05e69a822e6c5d462a Mon Sep 17 00:00:00 2001 From: Todd Martin Date: Thu, 10 Nov 2022 10:29:11 -0500 Subject: [PATCH] Changed query for device to include userId --- src/Api/Controllers/AuthRequestsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/Controllers/AuthRequestsController.cs b/src/Api/Controllers/AuthRequestsController.cs index 24547ef1f3..fca835af45 100644 --- a/src/Api/Controllers/AuthRequestsController.cs +++ b/src/Api/Controllers/AuthRequestsController.cs @@ -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.");