yavsc/yavscModel/RolesAndMemebers/ChangePasswordModel.cs

42 lines
1.0 KiB
C#

10 years ago
using System;
using System.ComponentModel.DataAnnotations;
10 years ago
namespace Yavsc.Model.RolesAndMembers
10 years ago
{
/// <summary>
/// Change password model.
/// </summary>
10 years ago
public class ChangePasswordModel
{
/// <summary>
/// Gets or sets the username.
/// </summary>
/// <value>The username.</value>
10 years ago
[Required(ErrorMessage = "Please enter a Username")]
public string Username { get; set; }
/// <summary>
/// Gets or sets the old password.
/// </summary>
/// <value>The old password.</value>
10 years ago
[Required(ErrorMessage = "Please your old Password")]
public string OldPassword { get; set; }
/// <summary>
/// Gets or sets the new password.
/// </summary>
/// <value>The new password.</value>
10 years ago
[Required(ErrorMessage = "Please enter a new Password")]
public string NewPassword { get; set; }
/// <summary>
/// Gets or sets the confirm password.
/// </summary>
/// <value>The confirm password.</value>
10 years ago
[Required(ErrorMessage = "Please confirm the new Password")]
public string ConfirmPassword { get; set; }
}
}