예제 #1
0
 public ActionResult ResetPassword(ResetPasswordModel m)
 {
     if(ModelState.IsValid)
     {
         bool resetResponse = WebSecurity.ResetPassword(m.ReturnToken, m.password);
         if(resetResponse)
         {
             ViewBag.Message = "Successfully Changed";
         }
         else
         {
             ViewBag.Message = "There was an error please contact administrator";
         }
     }
     return View(m);
 }
예제 #2
0
 public ActionResult ResetPassword(string rt)
 {
     ResetPasswordModel m = new ResetPasswordModel();
     m.ReturnToken = rt;
     return View(m);
 }