1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

check user has 2fa enabled when confirming

This commit is contained in:
Kyle Spearrin
2020-03-09 15:13:40 -04:00
parent 218fec52f1
commit 0f9ec8d64f
3 changed files with 12 additions and 5 deletions

View File

@ -133,7 +133,8 @@ namespace Bit.Api.Controllers
}
var userId = _userService.GetProperUserId(User);
var result = await _organizationService.ConfirmUserAsync(orgGuidId, new Guid(id), model.Key, userId.Value);
var result = await _organizationService.ConfirmUserAsync(orgGuidId, new Guid(id), model.Key, userId.Value,
_userService);
}
[HttpPut("{id}")]