File tree Expand file tree Collapse file tree 2 files changed +0
-56
lines changed
TwoFactorAuth/Block/Provider Expand file tree Collapse file tree 2 files changed +0
-56
lines changed Original file line number Diff line number Diff line change 8
8
namespace Magento \TwoFactorAuth \Block \Provider \Authy ;
9
9
10
10
use Magento \Backend \Block \Template ;
11
- use Magento \Framework \App \Config \ScopeConfigInterface ;
12
11
13
12
/**
14
13
* @api
15
14
*/
16
15
class Auth extends Template
17
16
{
18
- /**
19
- * Config path for the 2FA Attempts
20
- */
21
- private const XML_PATH_2FA_RETRY_ATTEMPTS = 'twofactorauth/general/twofactorauth_retry ' ;
22
-
23
- /**
24
- * @var ScopeConfigInterface
25
- */
26
- private $ scopeConfig ;
27
-
28
- /**
29
- * @param \Magento\Backend\Block\Template\Context $context
30
- * @param ScopeConfigInterface $scopeConfig
31
- * @param array $data
32
- */
33
- public function __construct (
34
- \Magento \Backend \Block \Template \Context $ context ,
35
- ScopeConfigInterface $ scopeConfig ,
36
- array $ data = []
37
- ) {
38
- parent ::__construct ($ context , $ data );
39
- $ this ->scopeConfig = $ scopeConfig ;
40
- }
41
-
42
17
/**
43
18
* @inheritdoc
44
19
*/
@@ -59,9 +34,6 @@ public function getJsLayout()
59
34
$ this ->jsLayout ['components ' ]['tfa-auth ' ]['successUrl ' ] =
60
35
$ this ->getUrl ($ this ->_urlBuilder ->getStartupPageUrl ());
61
36
62
- $ this ->jsLayout ['components ' ]['tfa-auth ' ]['attempts ' ] =
63
- $ this ->scopeConfig ->getValue (self ::XML_PATH_2FA_RETRY_ATTEMPTS );
64
-
65
37
return parent ::getJsLayout ();
66
38
}
67
39
}
Original file line number Diff line number Diff line change 8
8
namespace Magento \TwoFactorAuth \Block \Provider \Google ;
9
9
10
10
use Magento \Backend \Block \Template ;
11
- use Magento \Framework \App \Config \ScopeConfigInterface ;
12
11
13
12
/**
14
13
* @api
15
14
*/
16
15
class Auth extends Template
17
16
{
18
- /**
19
- * Config path for the 2FA Attempts
20
- */
21
- public const XML_PATH_2FA_RETRY_ATTEMPTS = 'twofactorauth/general/twofactorauth_retry ' ;
22
-
23
- /**
24
- * @var ScopeConfigInterface
25
- */
26
- private $ scopeConfig ;
27
-
28
- /**
29
- * @param \Magento\Backend\Block\Template\Context $context
30
- * @param ScopeConfigInterface $scopeConfig
31
- * @param array $data
32
- */
33
- public function __construct (
34
- \Magento \Backend \Block \Template \Context $ context ,
35
- ScopeConfigInterface $ scopeConfig ,
36
- array $ data = []
37
- ) {
38
- parent ::__construct ($ context , $ data );
39
- $ this ->scopeConfig = $ scopeConfig ;
40
- }
41
-
42
17
/**
43
18
* @inheritdoc
44
19
*/
@@ -50,9 +25,6 @@ public function getJsLayout()
50
25
$ this ->jsLayout ['components ' ]['tfa-auth ' ]['successUrl ' ] =
51
26
$ this ->getUrl ($ this ->_urlBuilder ->getStartupPageUrl ());
52
27
53
- $ this ->jsLayout ['components ' ]['tfa-auth ' ]['attempts ' ] =
54
- $ this ->scopeConfig ->getValue (self ::XML_PATH_2FA_RETRY_ATTEMPTS );
55
-
56
28
return parent ::getJsLayout ();
57
29
}
58
30
}
You can’t perform that action at this time.
0 commit comments