Example #1
0
 public Task <IActionResult> ChangePassword(ChangePasswordModel model)
 {
     return(MakeChangeAsync(u => userManager.ChangePasswordAsync(u, model.OldPassword, model.Password),
                            T.Get("users.profile.changePasswordDone"), model));
 }
 public Task <IActionResult> ChangePassword(ChangePasswordModel model)
 {
     return(MakeChangeAsync(u => userManager.ChangePasswordAsync(u, model.OldPassword, model.Password),
                            "Password changed successfully.", model));
 }
Example #3
0
 public Task <IActionResult> ChangePassword(ChangePasswordModel model)
 {
     return(MakeChangeAsync(id => userService.SetPasswordAsync(id, model.Password, model.OldPassword),
                            T.Get("users.profile.changePasswordDone"), model));
 }