Skip to content

Commit

Permalink
Merge pull request #84 from ONLYOFFICE/feature/removing-unused-method
Browse files Browse the repository at this point in the history
Feature/removing unused method
  • Loading branch information
pavelbannov authored Nov 23, 2023
2 parents 5d8d242 + a12aafb commit bda76e1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions products/ASC.People/Server/Api/UserController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,9 @@ public async Task<EmployeeFullDto> AddMemberAsActivatedAsync(MemberRequestDto in
await UpdateContactsAsync(inDto.Contacts, user);

_cache.Insert("REWRITE_URL" + await _tenantManager.GetCurrentTenantIdAsync(), HttpContext.Request.GetDisplayUrl(), TimeSpan.FromMinutes(5));
user = await _userManagerWrapper.AddUserAsync(user, inDto.PasswordHash, true, false, inDto.Type,
user = await _userManagerWrapper.AddUserAsync(user, inDto.PasswordHash, false, false, inDto.Type,
false, true, true);

user.ActivationStatus = EmployeeActivationStatus.Activated;

await UpdateDepartmentsAsync(inDto.Department, user);

if (inDto.Files != _userPhotoManager.GetDefaultPhotoAbsoluteWebPath())
Expand Down

0 comments on commit bda76e1

Please sign in to comment.