We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 839d3fc commit 45f2b64Copy full SHA for 45f2b64
src/Umbraco.Cms.Integrations.Crm.Dynamics/Controllers/FormsController.cs
@@ -120,13 +120,10 @@ public async Task<string> GetAccessToken([FromBody] OAuthRequestDto authRequestD
120
121
return result;
122
123
- } else
124
- {
125
- var errorResult = await response.Content.ReadAsStringAsync();
126
- var errorDto = JsonConvert.DeserializeObject<ErrorDto>(errorResult);
+ var errorResult = await response.Content.ReadAsStringAsync();
+ var errorDto = JsonConvert.DeserializeObject<ErrorDto>(errorResult);
127
128
- return "Error: " + errorDto.ErrorDescription;
129
- }
+ return "Error: " + errorDto.ErrorDescription;
130
}
131
132
[HttpGet]
0 commit comments