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/DonateRoute.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\Controllers\DonateController;
8 8 use Give\DonationForms\DataTransferObjects\DonateControllerData;
9 9 use Give\DonationForms\DataTransferObjects\DonateFormRouteData;
10 10 use Give\DonationForms\DataTransferObjects\DonateRouteData;
@@ -38,8 +38,9 @@
38 38 $this->donateController = $donateController;
39 39 }
40 40
41 41 /**
42 + * @since 4.17.0 Sign the donor in from the auth token when the login cookie is unavailable.
42 43 * @since 3.0.0
43 44 *
44 45 * @return void
45 46 */
@@ -49,8 +50,10 @@
49 50 $routeData = DonateRouteData::fromRequest(give_clean($_GET));
50 51
51 52 // validate signature
52 53 $routeData->validateSignature();
54 +
55 + (new AuthenticateFormRequestWithToken())($request);
53 56
54 57 // create DTO from POST request
55 58 $formData = DonateFormRouteData::fromRequest($request);
56 59