Skip to content

Instantly share code, notes, and snippets.

@BryanWilhite
Created November 12, 2014 23:06
Show Gist options
  • Save BryanWilhite/a8cbe3507983359420ab to your computer and use it in GitHub Desktop.
Save BryanWilhite/a8cbe3507983359420ab to your computer and use it in GitHub Desktop.
ASP.NET MVC: LoginModel
using System.ComponentModel.DataAnnotations;
namespace Fox.Web.Mvc.Models
{
/// <summary>
/// Models the data for Client Login
/// </summary>
/// <remarks>
/// For more, see “How to create a login page using ASP.NET MVC 3 Razor”
/// [http://razorlogin.codeplex.com/]
/// </remarks>
public class LoginModel
{
/// <summary>
/// Gets or sets the name of the user.
/// </summary>
/// <value>
/// The name of the user.
/// </value>
[Required]
[StringLength(64)]
public string UserName { get; set; }
/// <summary>
/// Gets or sets the password.
/// </summary>
/// <value>
/// The password.
/// </value>
[Required]
public string Password { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment