2014-10-11 06:57:02 +08:00
|
|
|
|
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)]
|
2015-01-05 06:14:43 +08:00
|
|
|
|
[DisplayName("Enter current password")]
|
2014-10-11 06:57:02 +08:00
|
|
|
|
public string OldPassword { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
[MinLength(12)]
|
2015-01-05 06:14:43 +08:00
|
|
|
|
[DisplayName("Enter new password")]
|
2014-10-11 06:57:02 +08:00
|
|
|
|
public string NewPassword { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
[MinLength(12)]
|
2015-01-05 06:14:43 +08:00
|
|
|
|
[DisplayName("Confirm new password")]
|
2014-10-11 06:57:02 +08:00
|
|
|
|
[Compare("NewPassword")]
|
|
|
|
|
public string ConfirmNewPassword { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|