File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed
view/adminhtml/templates/tfa Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 12
12
13
13
/**
14
14
* Abstraction for 2FA controllers
15
+ *
16
+ * @SuppressWarnings(PHPMD.NumberOfChildren)
15
17
*/
16
18
abstract class AbstractAction extends Action
17
19
{
Original file line number Diff line number Diff line change 8
8
9
9
namespace Magento \TwoFactorAuth \Model ;
10
10
11
- use Magento \Framework \App \Area ;
12
11
use Magento \Framework \App \Config \ScopeConfigInterface ;
13
- use Magento \Framework \App \State ;
14
- use Magento \Framework \UrlInterface ;
15
12
use Magento \Store \Model \StoreManagerInterface ;
16
13
use Magento \TwoFactorAuth \Model \Config \UserNotifier as UserNotifierConfig ;
17
14
use Magento \User \Model \User ;
@@ -55,22 +52,19 @@ class EmailUserNotifier implements UserNotifierInterface
55
52
* @param TransportBuilder $transportBuilder
56
53
* @param StoreManagerInterface $storeManager
57
54
* @param LoggerInterface $logger
58
- * @param UrlInterface $url
59
55
* @param UserNotifierConfig $userNotifierConfig
60
56
*/
61
57
public function __construct (
62
58
ScopeConfigInterface $ scopeConfig ,
63
59
TransportBuilder $ transportBuilder ,
64
60
StoreManagerInterface $ storeManager ,
65
61
LoggerInterface $ logger ,
66
- UrlInterface $ url ,
67
62
UserNotifierConfig $ userNotifierConfig
68
63
) {
69
64
$ this ->scopeConfig = $ scopeConfig ;
70
65
$ this ->transportBuilder = $ transportBuilder ;
71
66
$ this ->storeManager = $ storeManager ;
72
67
$ this ->logger = $ logger ;
73
- $ this ->url = $ url ;
74
68
$ this ->userNotifierConfig = $ userNotifierConfig ;
75
69
}
76
70
Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ $list = $block->getProvidersList();
22
22
)); ?>
23
23
</p>
24
24
<?php else : ?>
25
- <form class="tfa-configure-providers" method="post" action="<?= $ block ->getActionUrl () ?> ">
25
+ <form class="tfa-configure-providers" method="post" action="<?= $ block ->escapeHtmlAttr ( $ block -> getActionUrl () ) ?> ">
26
26
<ul class="tfa-provider_list">
27
27
<?php foreach ($ list as $ providerData ): ?>
28
28
<li class="tfa-provider">
29
29
<input type="checkbox"
30
- name="tfa_selected[<?= /* @noEscape*/ $ block ->escapeHtmlAttr ($ providerData ['code ' ]) ?> ]"
30
+ name="tfa_selected[<?= $ block ->escapeHtmlAttr ($ providerData ['code ' ]) ?> ]"
31
31
class="tfa-checkbox"
32
32
id="2fa_checkbox-<?= $ block ->escapeHtmlAttr ($ providerData ['code ' ]) ?> "/>
33
33
<label for="2fa_checkbox-<?= $ block ->escapeHtmlAttr ($ providerData ['code ' ]) ?> ">
You can’t perform that action at this time.
0 commit comments