Browse Source

Restore the constant class definition of the Identity module.

pull/4479/head
maliming 6 years ago
parent
commit
fc5836dd21
  1. 8
      modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/IdentityClaimTypeConsts.cs
  2. 4
      modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/IdentityRoleConsts.cs
  3. 2
      modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/IdentityUserConsts.cs

8
modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/IdentityClaimTypeConsts.cs

@ -2,9 +2,9 @@
{
public class IdentityClaimTypeConsts
{
public const int MaxNameLength = 256;
public const int MaxRegexLength = 512;
public const int MaxRegexDescriptionLength = 128;
public const int MaxDescriptionLength = 256;
public static int MaxNameLength { get; set; } = 256;
public static int MaxRegexLength { get; set; } = 512;
public static int MaxRegexDescriptionLength { get; set; } = 128;
public static int MaxDescriptionLength { get; set; } = 256;
}
}

4
modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/IdentityRoleConsts.cs

@ -2,7 +2,7 @@
{
public static class IdentityRoleConsts
{
public const int MaxNameLength = 256;
public const int MaxNormalizedNameLength = MaxNameLength;
public static int MaxNameLength { get; set; } = 256;
public static int MaxNormalizedNameLength { get; set; } = 256;
}
}

2
modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/IdentityUserConsts.cs

@ -22,6 +22,6 @@ namespace Volo.Abp.Identity
public static int MaxPasswordHashLength { get; set; } = 256;
public const int MaxSecurityStampLength = 256;
public static int MaxSecurityStampLength { get; set; } = 256;
}
}

Loading…
Cancel
Save