Skip to content

Commit

Permalink
Merge branch 'hotfix/v2.6.1' of https://github.com/ONLYOFFICE/DocSpac…
Browse files Browse the repository at this point in the history
…e-server into hotfix/v2.6.1
  • Loading branch information
NikolayRechkin committed Aug 5, 2024
2 parents 5a7b56e + 8a45974 commit 5dfcd46
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions products/ASC.People/Server/Api/ThirdpartyController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public class ThirdpartyController(
FileSecurity fileSecurity,
UsersInRoomChecker usersInRoomChecker,
IDistributedLockProvider distributedLockProvider,
LoginProfileTransport loginProfileTransport)
LoginProfileTransport loginProfileTransport,
EmailValidationKeyModelHelper emailValidationKeyModelHelper)
: ApiControllerBase
{

Expand Down Expand Up @@ -186,8 +187,9 @@ public async Task SignupAccountAsync(SignupAccountRequestDto inDto)
{
throw new Exception(Resource.ErrorNotCorrectEmail);
}

var linkData = await invitationService.GetInvitationDataAsync(inDto.Key, inDto.Email, inDto.EmployeeType ?? EmployeeType.RoomAdmin);

var model = emailValidationKeyModelHelper.GetModel();
var linkData = await invitationService.GetInvitationDataAsync(inDto.Key, inDto.Email, inDto.EmployeeType ?? EmployeeType.RoomAdmin, model?.UiD);

if (!linkData.IsCorrect)
{
Expand Down

0 comments on commit 5dfcd46

Please sign in to comment.