Use null-conditional operator in GetAuthorizationContextAsync call

This commit is contained in:
Sultan Soltanov 2023-02-23 13:38:34 +05:00
parent 0654a2966a
commit 90fe580e1f
No known key found for this signature in database
GPG Key ID: F2476AD2A719780D

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;