Browse Source
Merge pull request #2612 from abpframework/Increase-Password-max-length
Increase password max length
pull/2623/head
Halil İbrahim Kalkan
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
5 additions and
4 deletions
-
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs
-
modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/IdentityUserConsts.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; } |
|
|
|
} |
|
|
|
|
|
|
|
@ -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; |
|
|
|
|
|
|
|
|