[8384] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.ComponentModel.DataAnnotations;
|
---|
| 4 | using System.Globalization;
|
---|
| 5 | using System.Web.Mvc;
|
---|
| 6 | using System.Web.Security;
|
---|
| 7 |
|
---|
| 8 | namespace HeuristicLab.Services.Optimization.Web.Models {
|
---|
| 9 |
|
---|
| 10 | public class ChangePasswordModel {
|
---|
| 11 | [Required]
|
---|
| 12 | [DataType(DataType.Password)]
|
---|
| 13 | [Display(Name = "Current password")]
|
---|
| 14 | public string OldPassword { get; set; }
|
---|
| 15 |
|
---|
| 16 | [Required]
|
---|
| 17 | [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
|
---|
| 18 | [DataType(DataType.Password)]
|
---|
| 19 | [Display(Name = "New password")]
|
---|
| 20 | public string NewPassword { get; set; }
|
---|
| 21 |
|
---|
| 22 | [DataType(DataType.Password)]
|
---|
| 23 | [Display(Name = "Confirm new password")]
|
---|
| 24 | [Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")]
|
---|
| 25 | public string ConfirmPassword { get; set; }
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | public class LogOnModel {
|
---|
| 29 | [Required]
|
---|
| 30 | [Display(Name = "User name")]
|
---|
| 31 | public string UserName { get; set; }
|
---|
| 32 |
|
---|
| 33 | [Required]
|
---|
| 34 | [DataType(DataType.Password)]
|
---|
| 35 | [Display(Name = "Password")]
|
---|
| 36 | public string Password { get; set; }
|
---|
| 37 |
|
---|
| 38 | [Display(Name = "Remember me?")]
|
---|
| 39 | public bool RememberMe { get; set; }
|
---|
| 40 | }
|
---|
| 41 |
|
---|
| 42 | public class RegisterModel {
|
---|
| 43 | [Required]
|
---|
| 44 | [Display(Name = "User name")]
|
---|
| 45 | public string UserName { get; set; }
|
---|
| 46 |
|
---|
| 47 | [Required]
|
---|
| 48 | [DataType(DataType.EmailAddress)]
|
---|
| 49 | [Display(Name = "Email address")]
|
---|
| 50 | public string Email { get; set; }
|
---|
| 51 |
|
---|
| 52 | [Required]
|
---|
| 53 | [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
|
---|
| 54 | [DataType(DataType.Password)]
|
---|
| 55 | [Display(Name = "Password")]
|
---|
| 56 | public string Password { get; set; }
|
---|
| 57 |
|
---|
| 58 | [DataType(DataType.Password)]
|
---|
| 59 | [Display(Name = "Confirm password")]
|
---|
| 60 | [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
|
---|
| 61 | public string ConfirmPassword { get; set; }
|
---|
| 62 | }
|
---|
| 63 | }
|
---|