Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MembershipUser scUser = Membership.GetUser(model.UserName);
- if (scUser != null)
- {
- string oldPassword = scUser.ResetPassword();
- using (new SecurityDisabler())
- {
- if (scUser.ChangePassword(oldPassword, model.Password))
- {
- return Json("successfully changed password",JsonRequestBehavior.AllowGet);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement