People: refactor
This commit is contained in:
parent
19899d14e9
commit
2be40a9c50
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user