PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.17.0
GiveWP – Donation Plugin and Fundraising Platform v4.17.0
4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 All 256 releases
← All changes | src/DonationForms/Routes/ValidationRoute.php +4 -1 4.16.3 → 4.17.0 View file →
@@ -1,10 +1,10 @@
1 1 <?php
2 2
3 3 namespace Give\DonationForms\Routes;
4 4
5 -
6 5 use Exception;
6 +use Give\DonationForms\Actions\AuthenticateFormRequestWithToken;
7 7 use Give\DonationForms\DataTransferObjects\DonateRouteData;
8 8 use Give\DonationForms\DataTransferObjects\ValidationRouteData;
9 9 use Give\DonationForms\Exceptions\DonationFormFieldErrorsException;
10 10 use Give\DonationForms\Exceptions\DonationFormForbidden;
@@ -20,8 +20,9 @@
20 20 {
21 21 use HandleHttpResponses;
22 22
23 23 /**
24 + * @since 4.17.0 Sign the donor in from the auth token when the login cookie is unavailable.
24 25 * @since 3.22.0 added additional catch statements for forbidden and unknown errors
25 26 * @since 3.0.0
26 27 */
27 28 public function __invoke(array $request): bool
@@ -30,8 +31,10 @@
30 31 $routeData = DonateRouteData::fromRequest(give_clean($_GET));
31 32
32 33 // validate signature
33 34 $routeData->validateSignature();
35 +
36 + (new AuthenticateFormRequestWithToken())($request);
34 37
35 38 // create DTO from POST request
36 39 $formData = ValidationRouteData::fromRequest($request);
37 40