using System.ComponentModel.DataAnnotations;
using Abp.Auditing;
using Abp.Authorization.Users;

namespace YGNT.Exam.Models.TokenAuth
{
    public class AuthenticateModel
    {
        /// <summary>
        /// 用户名或者邮箱
        /// </summary>
        [Required]
        [StringLength(AbpUserBase.MaxEmailAddressLength)]
        public string UserNameOrEmailAddress { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required]
        [StringLength(AbpUserBase.MaxPlainPasswordLength)]
        [DisableAuditing]
        public string Password { get; set; }
        /// <summary>
        /// 是否记住
        /// </summary>
        public bool RememberClient { get; set; }
    }
}
