The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RegisterViewModel.cs 717B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using Teknik.Areas.Profile.Models;
  4. using Teknik.Helpers;
  5. using Teknik.Models;
  6. using Teknik.ViewModels;
  7. namespace Teknik.Areas.Profile.ViewModels
  8. {
  9. public class RegisterViewModel : ViewModelBase
  10. {
  11. [Required]
  12. [Display(Name = "Username")]
  13. public string Username { get; set; }
  14. [Required]
  15. [Display(Name = "Password")]
  16. [DataType(DataType.Password)]
  17. public string Password { get; set; }
  18. [Required]
  19. [Display(Name = "Confirm Password")]
  20. [DataType(DataType.Password)]
  21. public string ConfirmPassword { get; set; }
  22. public string ReturnUrl { get; set; }
  23. }
  24. }