People: refactor

This commit is contained in:
Maksim Chegulov 2023-02-17 17:53:30 +03:00
parent 19899d14e9
commit 2be40a9c50

View File

@ -237,8 +237,6 @@ public class ThirdpartyController : ApiControllerBase
private async Task<UserInfo> CreateNewUser(string firstName, string lastName, string email, string passwordHash, EmployeeType employeeType, bool fromInviteLink)
{
var isUser = employeeType == EmployeeType.User;
if (SetupInfo.IsSecretEmail(email))
{
fromInviteLink = false;
@ -257,7 +255,7 @@ public class ThirdpartyController : ApiControllerBase
userInfo.CultureName = _coreBaseSettings.CustomMode ? "ru-RU" : Thread.CurrentThread.CurrentUICulture.Name;
}
return await _userManagerWrapper.AddUser(userInfo, passwordHash, true, true, isUser, fromInviteLink);
return await _userManagerWrapper.AddUser(userInfo, passwordHash, true, true, employeeType, fromInviteLink);
}
private async Task SaveContactImage(Guid userID, string url)