public async Task <bool> EditPassword(PasswordForEdit passwordForEdit) { var currentUser = await GetCurrentUser(); var updateResult = await _userManager.ChangePasswordAsync(currentUser, passwordForEdit.CurrentPassword, passwordForEdit.NewPassword); return(updateResult.Succeeded); }
public async Task <IActionResult> EditPassword(PasswordForEdit passwordForEdit) { var result = await _accountService.EditPassword(passwordForEdit); return(Ok(result)); }