mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-08 06:08:20 -05:00
cap client name for new flow
This commit is contained in:
parent
d2590c929a
commit
3b13ad2b4f
@ -35,6 +35,8 @@ namespace SharedLibraryCore.Services
|
|||||||
|
|
||||||
public async Task<EFClient> Create(EFClient entity)
|
public async Task<EFClient> Create(EFClient entity)
|
||||||
{
|
{
|
||||||
|
entity.Name = entity.Name.CapClientName(EFAlias.MAX_NAME_LENGTH);
|
||||||
|
|
||||||
if (!_appConfig.EnableImplicitAccountLinking)
|
if (!_appConfig.EnableImplicitAccountLinking)
|
||||||
{
|
{
|
||||||
return await HandleNewCreate(entity);
|
return await HandleNewCreate(entity);
|
||||||
@ -45,7 +47,6 @@ namespace SharedLibraryCore.Services
|
|||||||
{
|
{
|
||||||
int? linkId = null;
|
int? linkId = null;
|
||||||
int? aliasId = null;
|
int? aliasId = null;
|
||||||
entity.Name = entity.Name.CapClientName(EFAlias.MAX_NAME_LENGTH);
|
|
||||||
|
|
||||||
if (entity.IPAddress != null)
|
if (entity.IPAddress != null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user