Пример #1
0
        public async Task Confirm(string orgId, string id, [FromBody] OrganizationUserConfirmRequestModel model)
        {
            var orgGuidId = new Guid(orgId);

            if (!_currentContext.OrganizationAdmin(orgGuidId))
            {
                throw new NotFoundException();
            }

            var userId = _userService.GetProperUserId(User);
            var result = await _organizationService.ConfirmUserAsync(orgGuidId, new Guid(id), model.Key, userId.Value);
        }
 public async Task Confirm(string orgId, string id, [FromBody] OrganizationUserConfirmRequestModel model)
 {
     var userId = _userService.GetProperUserId(User);
     var result = await _organizationService.ConfirmUserAsync(new Guid(orgId), new Guid(id), model.Key, userId.Value);
 }
Пример #3
0
 public async Task PutUserSubvaults(string orgId, [FromBody] OrganizationUserConfirmRequestModel model)
 {
 }
 public async Task Confirm(string id, [FromBody] OrganizationUserConfirmRequestModel model)
 {
     var userId = _userService.GetProperUserId(User);
     await _emergencyAccessService.ConfirmUserAsync(new Guid(id), model.Key, userId.Value);
 }
Пример #5
0
 public async Task Confirm(string orgId, string id, [FromBody] OrganizationUserConfirmRequestModel model)
 {
     var result = await _organizationService.ConfirmUserAsync(new Guid(id), model.Key);
 }