File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 20
20
use Magento \TwoFactorAuth \Api \TfaInterface ;
21
21
use Magento \TwoFactorAuth \Api \TfaSessionInterface ;
22
22
use Magento \TwoFactorAuth \Api \UserConfigRequestManagerInterface ;
23
+ use Magento \TwoFactorAuth \Controller \Adminhtml \Tfa \Requestconfig ;
23
24
use Magento \TwoFactorAuth \Model \UserConfig \HtmlAreaTokenVerifier ;
24
25
25
26
/**
@@ -145,7 +146,7 @@ public function execute(Observer $observer)
145
146
146
147
if (!$ accessGranted && $ configurationStillRequired ) {
147
148
//User needs special link with a token to be allowed to configure 2FA
148
- if ($ this ->authorization ->isAllowed (Configure ::ADMIN_RESOURCE )) {
149
+ if ($ this ->authorization ->isAllowed (Requestconfig ::ADMIN_RESOURCE )) {
149
150
$ this ->redirect ('tfa/tfa/requestconfig ' );
150
151
} else {
151
152
$ this ->redirect ('tfa/tfa/accessdenied ' );
You can’t perform that action at this time.
0 commit comments