Created
December 20, 2012 07:24
-
-
Save bzbetty/4343532 to your computer and use it in GitHub Desktop.
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
public ActionResult Login(string username, string password) { | |
if(username != “user” || password != “123”) { | |
ModelState.AddError(“username or password incorrect”); | |
return View(); | |
} | |
return new LoginResult(username); //I typically pass the actual user into the login result | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment