mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 01:22:50 -05:00
clear token by id
This commit is contained in:
@ -108,7 +108,7 @@ namespace Bit.Api.Controllers
|
||||
[HttpPost("identifier/{identifier}/clear-token")]
|
||||
public async Task PutClearToken(string identifier)
|
||||
{
|
||||
var device = await _deviceRepository.GetByIdentifierAsync(identifier, _userService.GetProperUserId(User).Value);
|
||||
var device = await _deviceRepository.GetByIdentifierAsync(identifier);
|
||||
if(device == null)
|
||||
{
|
||||
throw new NotFoundException();
|
||||
|
Reference in New Issue
Block a user