mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
28 lines
700 B
C#
28 lines
700 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
namespace BuildFeed.Models.ViewModel
|
|
{
|
|
public class ChangePassword
|
|
{
|
|
[Required]
|
|
[MinLength(12)]
|
|
[DisplayName("Enter current password")]
|
|
public string OldPassword { get; set; }
|
|
|
|
[Required]
|
|
[MinLength(12)]
|
|
[DisplayName("Enter new password")]
|
|
public string NewPassword { get; set; }
|
|
|
|
[Required]
|
|
[MinLength(12)]
|
|
[DisplayName("Confirm new password")]
|
|
[Compare("NewPassword")]
|
|
public string ConfirmNewPassword { get; set; }
|
|
}
|
|
} |