using System;
using System.ComponentModel.DataAnnotations;
using Qusion.WebApp.Areas.Qusion.Filters;

namespace Qusion.WebApp.Areas.Qusion.Models.Users
{
    /// <summary>
    /// Represent data requerd for change user password.
    /// </summary>
    public class ChangePasswordInput
    {
        /// <summary>
        /// Gets or sets user id.
        /// </summary>
        public Guid ID { get; set; }

        /// <summary>
        /// Gets or sets current user password.
        /// </summary>
        [Required(ErrorMessage = "users.currentPassRequired")]
        public string CurrentPass { get; set; }

        /// <summary>
        /// Gets or sets new user password.
        /// </summary>
        [Required(ErrorMessage = "users.newPassRequired")]
        public string NewPass { get; set; }

        /// <summary>
        /// Gets or sets confirmation of new password.
        /// </summary>
        [Equal("NewPass", "users.passNotEqual")]
        public string ConfirmNewPass { get; set; }
    }
}