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.

LoginViewModel.cs 758B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Web;
  6. using System.Web.Security;
  7. using Teknik.Utilities;
  8. using Teknik.Models;
  9. using Teknik.ViewModels;
  10. using System.Web.Mvc;
  11. namespace Teknik.Areas.Users.ViewModels
  12. {
  13. public class LoginViewModel : ViewModelBase
  14. {
  15. [Required]
  16. [Display(Name = "Username")]
  17. public string Username { get; set; }
  18. [Required]
  19. [Display(Name = "Password")]
  20. [DataType(DataType.Password)]
  21. [AllowHtml]
  22. public string Password { get; set; }
  23. [Display(Name = "Remember Me")]
  24. public bool RememberMe { get; set; }
  25. public string ReturnUrl { get; set; }
  26. }
  27. }