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:
parent
a9466451f0
commit
5e3f6db64b
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user