public Task <IActionResult> SetPassword(SetPasswordModel model) { return(MakeChangeAsync(id => userService.SetPasswordAsync(id, model.Password), T.Get("users.profile.setPasswordDone"), model)); }
public Task <IActionResult> SetPassword(SetPasswordModel model) { return(MakeChangeAsync(user => userManager.AddPasswordAsync(user, model.Password), "Password set successfully.")); }
public Task <IActionResult> SetPassword(SetPasswordModel model) { return(MakeChangeAsync(u => userManager.AddPasswordAsync(u, model.Password), T.Get("users.profile.setPasswordDone"), model)); }