using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Web;
namespace EMIS.ViewModel.AccountManage
{
public class LogOnModel
{
///
///
///
[Required]
[Display(Name = "用户名")]
public string UserName { get; set; }
///
///
///
[Required]
[DataType(DataType.Password)]
[Display(Name = "密码")]
public string Password { get; set; }
///
///
///
[Display(Name = "记住我")]
public bool RememberMe { get; set; }
///
///
///
[Display(Name = "验证码")]
public string VerifyCode { get; set; }
///
///
///
public HttpSessionStateBase Session { get; set; }
///
///
///
[Display(Name = "登录错误次数")]
public int FailCount
{
get
{
int value = 0;
if (Session != null)
{
value = (int)Session["FailCount"];
}
return value;
}
}
}
}