mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-20 13:34:37 +01:00
Fix: Do not crash when redirect url is not provided to Authorize page
This commit is contained in:
parent
befa436087
commit
bede4a3a42
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,7 @@ namespace BTCPayServer.Controllers
|
|||
case "authorize":
|
||||
case "confirm":
|
||||
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);
|
||||
|
||||
if (viewModel.RedirectUrl != null)
|
||||
|
|
Loading…
Add table
Reference in a new issue