fix
This commit is contained in:
parent
7d9d8fcba3
commit
f974bb0655
@ -194,7 +194,7 @@ public class ThirdpartyController : ApiControllerBase
|
||||
{
|
||||
_securityContext.AuthenticateMeWithoutCookie(Core.Configuration.Constants.CoreSystem);
|
||||
var newUser = await CreateNewUser(GetFirstName(inDto, thirdPartyProfile), GetLastName(inDto, thirdPartyProfile), GetEmailAddress(inDto, thirdPartyProfile), passwordHash, employeeType, false);
|
||||
var messageAction = employeeType == EmployeeType.User ? MessageAction.UserCreatedViaInvite : MessageAction.GuestCreatedViaInvite;
|
||||
var messageAction = employeeType == EmployeeType.RoomAdmin ? MessageAction.UserCreatedViaInvite : MessageAction.GuestCreatedViaInvite;
|
||||
_messageService.Send(MessageInitiator.System, messageAction, _messageTarget.Create(newUser.Id), newUser.DisplayUserName(false, _displayUserSettingsHelper));
|
||||
userID = newUser.Id;
|
||||
if (!string.IsNullOrEmpty(thirdPartyProfile.Avatar))
|
||||
|
Loading…
Reference in New Issue
Block a user