Browse Source

Use null-conditional operator in GetAuthorizationContextAsync call

pull/2053/head
Sultan Soltanov 1 year ago
parent
commit
90fe580e1f
No known key found for this signature in database GPG Key ID: F2476AD2A719780D
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Services/Identity/Identity.API/Quickstart/Consent/ConsentController.cs

+ 1
- 1
src/Services/Identity/Identity.API/Quickstart/Consent/ConsentController.cs View File

@ -84,7 +84,7 @@ public class ConsentController : Controller
var result = new ProcessConsentResult();
// validate return url is still valid
var request = await _interaction.GetAuthorizationContextAsync(model.ReturnUrl);
var request = await _interaction.GetAuthorizationContextAsync(model?.ReturnUrl);
if (request == null) return result;
ConsentResponse grantedConsent = null;


Loading…
Cancel
Save