From 3b13ad2b4f799dc6415057db707dc69c21a9fca6 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Fri, 17 Sep 2021 11:19:17 -0500 Subject: [PATCH] cap client name for new flow --- SharedLibraryCore/Services/ClientService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SharedLibraryCore/Services/ClientService.cs b/SharedLibraryCore/Services/ClientService.cs index 8a70c779..5bdfaf14 100644 --- a/SharedLibraryCore/Services/ClientService.cs +++ b/SharedLibraryCore/Services/ClientService.cs @@ -35,6 +35,8 @@ namespace SharedLibraryCore.Services public async Task 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) {