mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 06:24:24 +01:00
Fix: Do not crash when redirect url is not provided to Authorize page
This commit is contained in:
@@ -297,7 +297,7 @@ namespace BTCPayServer.Controllers
|
|||||||
case "authorize":
|
case "authorize":
|
||||||
case "confirm":
|
case "confirm":
|
||||||
var key = command == "authorize"
|
var key = command == "authorize"
|
||||||
? await CreateKey(viewModel, (viewModel.ApplicationIdentifier, viewModel.RedirectUrl.AbsoluteUri))
|
? await CreateKey(viewModel, (viewModel.ApplicationIdentifier, viewModel.RedirectUrl?.AbsoluteUri))
|
||||||
: await _apiKeyRepository.GetKey(viewModel.ApiKey);
|
: await _apiKeyRepository.GetKey(viewModel.ApiKey);
|
||||||
|
|
||||||
if (viewModel.RedirectUrl != null)
|
if (viewModel.RedirectUrl != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user