mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 05:00:19 -05:00
Changed query for device to include userId (#2415)
(cherry picked from commit 5e3f6db64bda449a8647ac05e69a822e6c5d462a) (cherry picked from commit 19916a0dcf0fd97748e3802f96c6ee6240f93005)
This commit is contained in:
parent
c377a50b9d
commit
aa952e11df
@ -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…
x
Reference in New Issue
Block a user