Exemplo n.º 1
0
 public ResetPasswordViewModel(ProjectControllerBase projectControllerBase, ResetPasswordViewModel loginModel)
     : base(projectControllerBase)
 {
     Email = loginModel.Email;
     Password = loginModel.Password;
     ConfirmPassword = loginModel.ConfirmPassword;
     Code = loginModel.Code;
 }
Exemplo n.º 2
0
 public ForgotPasswordViewModel(ProjectControllerBase projectControllerBase,
     ResetPasswordViewModel loginModel)
     : base(projectControllerBase)
 {
     Email = loginModel.Email;
 }
Exemplo n.º 3
0
 public ActionResult ResetPassword(ResetPasswordViewModel model)
 {
     return null;
     /*
     if (!ModelState.IsValid) {
         return View(model);
     }
     var user = UserManager.FindByName(model.Email);
     if (user == null) {
         // Don't reveal that the user does not exist
         return RedirectToAction("ResetPasswordConfirmation", "Account");
     }
     var result = UserManager.ResetPassword(user.Id, model.Code, model.Password);
     if (result.Succeeded) {
         return RedirectToAction("ResetPasswordConfirmation", "Account");
     }
     AddErrors(result);
     return View();
     */
 }