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