Browse Source

increase Password max length to 128

pull/2612/head
Yunus Emre Kalkan 7 years ago
parent
commit
f12b488c3f
  1. 7
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs
  2. 2
      modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/IdentityUserConsts.cs

7
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs

@ -3,6 +3,7 @@ using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.Account.Settings;
using Volo.Abp.Identity;
using Volo.Abp.Settings;
using Volo.Abp.Uow;
using IdentityUser = Volo.Abp.Identity.IdentityUser;
@ -55,16 +56,16 @@ namespace Volo.Abp.Account.Web.Pages.Account
public class PostInput
{
[Required]
[StringLength(32)]
[StringLength(IdentityUserConsts.MaxUserNameLength)]
public string UserName { get; set; }
[Required]
[EmailAddress]
[StringLength(255)]
[StringLength(IdentityUserConsts.MaxEmailLength)]
public string EmailAddress { get; set; }
[Required]
[StringLength(32)]
[StringLength(IdentityUserConsts.MaxPasswordLength)]
[DataType(DataType.Password)]
public string Password { get; set; }
}

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

@ -18,7 +18,7 @@ namespace Volo.Abp.Identity
public const int MaxPhoneNumberLength = AbpUserConsts.MaxPhoneNumberLength;
public const int MaxPasswordLength = 32;
public const int MaxPasswordLength = 128;
public const int MaxPasswordHashLength = 256;

Loading…
Cancel
Save