12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel.DataAnnotations;
- using System.Web;
- namespace EMIS.ViewModel.Account
- {
- public class LogOnModel
- {
- [Required]
- [Display(Name = "用户名")]
- public string UserName { get; set; }
- public string EncryptedUserName { 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;
- }
- }
- }
- }
|