From 87985b3e6802b6dfdc75879e595c4e10e25625d4 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 8a70c7797..5bdfaf14e 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) {