Created
November 12, 2014 23:06
-
-
Save BryanWilhite/a8cbe3507983359420ab to your computer and use it in GitHub Desktop.
ASP.NET MVC: LoginModel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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