yavsc/yavscModel/RolesAndMemebers/ChangePasswordModel.cs

41 lines
1 KiB
C#
Raw Normal View History

2014-07-16 20:35:03 +02:00
using System;
using System.ComponentModel.DataAnnotations;
2014-10-06 04:58:47 +02:00
namespace Yavsc.Model.RolesAndMembers
2014-07-16 20:35:03 +02:00
{
/// <summary>
/// Change password model.
/// </summary>
2014-07-16 20:35:03 +02:00
public class ChangePasswordModel
{
/// <summary>
/// Gets or sets the username.
/// </summary>
/// <value>The username.</value>
2014-07-16 20:35:03 +02:00
[Required(ErrorMessage = "Please enter a Username")]
public string Username { get; set; }
/// <summary>
/// Gets or sets the old password.
/// </summary>
/// <value>The old password.</value>
2014-07-16 20:35:03 +02:00
[Required(ErrorMessage = "Please your old Password")]
public string OldPassword { get; set; }
/// <summary>
/// Gets or sets the new password.
/// </summary>
/// <value>The new password.</value>
2014-07-16 20:35:03 +02:00
[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>
2014-07-16 20:35:03 +02:00
[Required(ErrorMessage = "Please confirm the new Password")]
public string ConfirmPassword { get; set; }
}
}