mirror of https://github.com/abpframework/abp.git
7 changed files with 34 additions and 9 deletions
@ -1,9 +1,15 @@ |
|||||
namespace Volo.Abp.Identity |
using System.ComponentModel.DataAnnotations; |
||||
|
using Volo.Abp.Validation; |
||||
|
|
||||
|
namespace Volo.Abp.Identity |
||||
{ |
{ |
||||
public class ChangePasswordInput |
public class ChangePasswordInput |
||||
{ |
{ |
||||
|
[DynamicStringLength(typeof(IdentityUserConsts), nameof(IdentityUserConsts.MaxPasswordLength))] |
||||
public string CurrentPassword { get; set; } |
public string CurrentPassword { get; set; } |
||||
|
|
||||
|
[Required] |
||||
|
[DynamicStringLength(typeof(IdentityUserConsts), nameof(IdentityUserConsts.MaxPasswordLength))] |
||||
public string NewPassword { get; set; } |
public string NewPassword { get; set; } |
||||
} |
} |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue