mirror of
https://github.com/bitwarden/server
synced 2025-12-17 08:43:27 +00:00
Changed query for device to include userId (#2415)
(cherry picked from commit5e3f6db64b) (cherry picked from commit19916a0dcf)
This commit is contained in:
@@ -130,7 +130,7 @@ public class AuthRequestsController : Controller
|
|||||||
throw new DuplicateAuthRequestException();
|
throw new DuplicateAuthRequestException();
|
||||||
}
|
}
|
||||||
|
|
||||||
var device = await _deviceRepository.GetByIdentifierAsync(model.DeviceIdentifier);
|
var device = await _deviceRepository.GetByIdentifierAsync(model.DeviceIdentifier, userId);
|
||||||
if (device == null)
|
if (device == null)
|
||||||
{
|
{
|
||||||
throw new BadRequestException("Invalid device.");
|
throw new BadRequestException("Invalid device.");
|
||||||
|
|||||||
Reference in New Issue
Block a user