| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using Microsoft.AspNet.Identity;
- using Microsoft.Owin.Security;
- namespace Winsoft.GOV.XF.WX.Models
- {
- public class IndexViewModel
- {
- public bool HasPassword { get; set; }
- public IList<UserLoginInfo> Logins { get; set; }
- public string PhoneNumber { get; set; }
- public bool TwoFactor { get; set; }
- public bool BrowserRemembered { get; set; }
- }
- public class ManageLoginsViewModel
- {
- public IList<UserLoginInfo> CurrentLogins { get; set; }
- public IList<AuthenticationDescription> OtherLogins { get; set; }
- }
- public class FactorViewModel
- {
- public string Purpose { get; set; }
- }
- public class SetPasswordViewModel
- {
- [Required]
- [StringLength(100, ErrorMessage = "{0} 必须至少包含 {2} 个字符。", MinimumLength = 6)]
- [DataType(DataType.Password)]
- [Display(Name = "新密码")]
- public string NewPassword { get; set; }
- [DataType(DataType.Password)]
- [Display(Name = "确认新密码")]
- [Compare("NewPassword", ErrorMessage = "新密码和确认密码不匹配。")]
- public string ConfirmPassword { get; set; }
- }
- public class ChangePasswordViewModel
- {
- [Required]
- [DataType(DataType.Password)]
- [Display(Name = "当前密码")]
- public string OldPassword { get; set; }
- [Required]
- [StringLength(100, ErrorMessage = "{0} 必须至少包含 {2} 个字符。", MinimumLength = 6)]
- [DataType(DataType.Password)]
- [Display(Name = "新密码")]
- public string NewPassword { get; set; }
- [DataType(DataType.Password)]
- [Display(Name = "确认新密码")]
- [Compare("NewPassword", ErrorMessage = "新密码和确认密码不匹配。")]
- public string ConfirmPassword { get; set; }
- }
- public class AddPhoneNumberViewModel
- {
- [Required]
- [Phone]
- [Display(Name = "电话号码")]
- public string Number { get; set; }
- }
- public class VerifyPhoneNumberViewModel
- {
- [Required]
- [Display(Name = "代码")]
- public string Code { get; set; }
- [Required]
- [Phone]
- [Display(Name = "电话号码")]
- public string PhoneNumber { get; set; }
- }
- public class ConfigureTwoFactorViewModel
- {
- public string SelectedProvider { get; set; }
- public ICollection<System.Web.Mvc.SelectListItem> Providers { get; set; }
- }
- }
|