mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Form System Flexibility improvements (#4774)
* Introduce very flexible form input system * Refactorings after rebase * Test fix * Update BTCPayServer/Forms/FormDataService.cs --------- Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
This commit is contained in:
@@ -267,7 +267,7 @@ namespace BTCPayServer.Plugins.PointOfSale.Controllers
|
||||
return RedirectToAction(nameof(ViewPointOfSale), new { appId, viewType });
|
||||
}
|
||||
|
||||
formResponseJObject = form.GetValues();
|
||||
formResponseJObject = FormDataService.GetValues(form);
|
||||
break;
|
||||
}
|
||||
try
|
||||
@@ -406,7 +406,7 @@ namespace BTCPayServer.Plugins.PointOfSale.Controllers
|
||||
var controller = nameof(UIPointOfSaleController).TrimEnd("Controller", StringComparison.InvariantCulture);
|
||||
var redirectUrl =
|
||||
Request.GetAbsoluteUri(Url.Action(nameof(ViewPointOfSale), controller, new {appId, viewType}));
|
||||
formParameters.Add("formResponse", form.GetValues().ToString());
|
||||
formParameters.Add("formResponse", FormDataService.GetValues(form).ToString());
|
||||
return View("PostRedirect", new PostRedirectViewModel
|
||||
{
|
||||
FormUrl = redirectUrl,
|
||||
|
||||
Reference in New Issue
Block a user