File tree Expand file tree Collapse file tree 4 files changed +74
-3
lines changed
ReCaptchaVersion2Checkbox/etc
ReCaptchaVersion2Invisible/etc
ReCaptchaVersion3Invisible/etc
TwoFactorAuth/Test/Integration Expand file tree Collapse file tree 4 files changed +74
-3
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+ <csp_whitelist xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd" >
9
+ <policies >
10
+ <policy id =" frame-src" >
11
+ <values >
12
+ <value id =" google_com" type =" host" >https://www.google.com/recaptcha/</value >
13
+ </values >
14
+ </policy >
15
+ <policy id =" script-src" >
16
+ <values >
17
+ <value id =" gstatic_com" type =" host" >https://www.gstatic.com/recaptcha/</value >
18
+ <value id =" google_com" type =" host" >https://www.google.com/recaptcha/</value >
19
+ </values >
20
+ </policy >
21
+ </policies >
22
+ </csp_whitelist >
23
+
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+ <csp_whitelist xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd" >
9
+ <policies >
10
+ <policy id =" frame-src" >
11
+ <values >
12
+ <value id =" google_com" type =" host" >https://www.google.com/recaptcha/</value >
13
+ </values >
14
+ </policy >
15
+ <policy id =" script-src" >
16
+ <values >
17
+ <value id =" gstatic_com" type =" host" >https://www.gstatic.com/recaptcha/</value >
18
+ <value id =" google_com" type =" host" >https://www.google.com/recaptcha/</value >
19
+ </values >
20
+ </policy >
21
+ </policies >
22
+ </csp_whitelist >
23
+
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+ <csp_whitelist xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd" >
9
+ <policies >
10
+ <policy id =" frame-src" >
11
+ <values >
12
+ <value id =" google_com" type =" host" >https://www.google.com/recaptcha/</value >
13
+ </values >
14
+ </policy >
15
+ <policy id =" script-src" >
16
+ <values >
17
+ <value id =" gstatic_com" type =" host" >https://www.gstatic.com/recaptcha/</value >
18
+ <value id =" google_com" type =" host" >https://www.google.com/recaptcha/</value >
19
+ </values >
20
+ </policy >
21
+ </policies >
22
+ </csp_whitelist >
23
+
Original file line number Diff line number Diff line change @@ -170,8 +170,8 @@ public function testShouldEncryptConfiguration(): void
170
170
$ encryptor = Bootstrap::getObjectManager ()->create (EncryptorInterface::class);
171
171
172
172
/** @var ResourceConnection $resourceConnection */
173
- $ connection = Bootstrap::getObjectManager ()->get (ResourceConnection::class)
174
- ->getConnection (ResourceConnection::DEFAULT_CONNECTION );
173
+ $ resourceConnection = Bootstrap::getObjectManager ()->get (ResourceConnection::class);
174
+ $ connection = $ resourceConnection ->getConnection (ResourceConnection::DEFAULT_CONNECTION );
175
175
176
176
$ configPayload = ['a ' => 1 , 'b ' => 2 ];
177
177
@@ -181,8 +181,10 @@ public function testShouldEncryptConfiguration(): void
181
181
$ configPayload
182
182
);
183
183
184
+ $ tfaUserConfig = $ resourceConnection ->getTableName ('tfa_user_config ' );
185
+
184
186
$ qry = $ connection ->select ()
185
- ->from (' tfa_user_config ' , 'encoded_config ' )
187
+ ->from ($ tfaUserConfig , 'encoded_config ' )
186
188
->where ('user_id = ? ' , (int )$ dummyUser ->getId ());
187
189
188
190
$ res = $ connection ->fetchOne ($ qry );
You can’t perform that action at this time.
0 commit comments