Class ChangePasswordModel
- Assembly
- JJConsulting.Infinity.Domain.dll
public class ChangePasswordModel : IValidatableObjectInheritance
Implements
Inherited Members
Properties
ConfirmPassword
[DataType(DataType.Password)]
[Display(Name = "Confirm new password")]
[Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")]
public string ConfirmPassword { get; set; }Property Value
LegacyId
public string? LegacyId { get; set; }Property Value
NewPassword
[Required(ErrorMessage = "The {0} field is required.")]
[StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)]
[DataType(DataType.Password)]
[Display(Name = "New Password")]
public string NewPassword { get; set; }Property Value
OldPassword
[Required(ErrorMessage = "The {0} field is required.")]
[DataType(DataType.Password)]
[Display(Name = "Current Password")]
public string OldPassword { get; set; }Property Value
UserId
public Guid? UserId { get; set; }Property Value
- Guid?
Methods
Validate(ValidationContext)
Determines whether the specified object is valid.
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)Parameters
validationContextValidationContext-
The validation context.
Returns
- IEnumerable<ValidationResult>
-
A collection that holds failed-validation information.