1 using System.Collections.Generic;
2 using System.ComponentModel.DataAnnotations;
4 namespace Projects.Models
6 public class ExternalLoginConfirmationViewModel
9 [Display(Name = "Email")]
10 public string Email { get; set; }
13 public class ExternalLoginListViewModel
15 public string ReturnUrl { get; set; }
18 public class SendCodeViewModel
20 public string SelectedProvider { get; set; }
21 public ICollection<System.Web.Mvc.SelectListItem> Providers { get; set; }
22 public string ReturnUrl { get; set; }
23 public bool RememberMe { get; set; }
26 public class VerifyCodeViewModel
29 public string Provider { get; set; }
32 [Display(Name = "Code")]
33 public string Code { get; set; }
34 public string ReturnUrl { get; set; }
36 [Display(Name = "Remember this browser?")]
37 public bool RememberBrowser { get; set; }
39 public bool RememberMe { get; set; }
42 public class ForgotViewModel
45 [Display(Name = "Email")]
46 public string Email { get; set; }
49 public class LoginViewModel
52 [Display(Name = "Email")]
54 public string Email { get; set; }
57 [DataType(DataType.Password)]
58 [Display(Name = "Password")]
59 public string Password { get; set; }
61 [Display(Name = "Remember me?")]
62 public bool RememberMe { get; set; }
65 public class RegisterViewModel
69 [Display(Name = "Email")]
70 public string Email { get; set; }
73 [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
74 [DataType(DataType.Password)]
75 [Display(Name = "Password")]
76 public string Password { get; set; }
78 [DataType(DataType.Password)]
79 [Display(Name = "Confirm password")]
80 [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
81 public string ConfirmPassword { get; set; }
84 public class ResetPasswordViewModel
88 [Display(Name = "Email")]
89 public string Email { get; set; }
92 [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
93 [DataType(DataType.Password)]
94 [Display(Name = "Password")]
95 public string Password { get; set; }
97 [DataType(DataType.Password)]
98 [Display(Name = "Confirm password")]
99 [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
100 public string ConfirmPassword { get; set; }
102 public string Code { get; set; }
105 public class ForgotPasswordViewModel
109 [Display(Name = "Email")]
110 public string Email { get; set; }