cap client name for new flow

This commit is contained in:
RaidMax 2021-09-17 11:19:17 -05:00
parent 33c63f01db
commit 87985b3e68

View File

@ -35,6 +35,8 @@ namespace SharedLibraryCore.Services
public async Task<EFClient> Create(EFClient entity)
{
entity.Name = entity.Name.CapClientName(EFAlias.MAX_NAME_LENGTH);
if (!_appConfig.EnableImplicitAccountLinking)
{
return await HandleNewCreate(entity);
@ -45,7 +47,6 @@ namespace SharedLibraryCore.Services
{
int? linkId = null;
int? aliasId = null;
entity.Name = entity.Name.CapClientName(EFAlias.MAX_NAME_LENGTH);
if (entity.IPAddress != null)
{