@@ -95,6 +95,9 @@ |
||
| 95 | 95 | return $this->getSelectedSnippet($customer, false); |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | + /** |
|
| 99 | + * @param boolean $condition |
|
| 100 | + */ |
|
| 98 | 101 | private function getSelectedSnippet(CustomerInterface $customer, $condition) |
| 99 | 102 | { |
| 100 | 103 | $html = ''; |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | use Rossmitchell\Twofactor\Model\Config\Customer as CustomerConfig; |
| 28 | 28 | use Rossmitchell\Twofactor\Model\Customer\Attribute\IsUsingTwoFactor; |
| 29 | 29 | use Rossmitchell\Twofactor\Model\Customer\Customer; |
| 30 | -use Rossmitchell\Twofactor\Model\Customer\UsingTwoFactor; |
|
| 31 | 30 | |
| 32 | 31 | class UseTwoFactor extends Template |
| 33 | 32 | { |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | |
| 22 | 22 | namespace Rossmitchell\Twofactor\Controller\Adminhtml\Adminlogin; |
| 23 | 23 | |
| 24 | -use Magento\Backend\App\Action; |
|
| 25 | 24 | use Magento\Backend\App\Action\Context; |
| 26 | 25 | use Magento\Framework\App\ResponseInterface; |
| 27 | 26 | use PragmaRX\Google2FA\Exceptions\InvalidCharactersException; |
@@ -140,6 +140,9 @@ |
||
| 140 | 140 | return $this->redirect('/'); |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | + /** |
|
| 144 | + * @param string $path |
|
| 145 | + */ |
|
| 143 | 146 | public function redirect($path) |
| 144 | 147 | { |
| 145 | 148 | $redirect = $this->resultRedirectFactory->create(); |
@@ -21,7 +21,6 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | namespace Rossmitchell\Twofactor\Observer\Controller\Frontend; |
| 23 | 23 | |
| 24 | -use Magento\Framework\App\Action\Action; |
|
| 25 | 24 | use Magento\Framework\App\ResponseFactory; |
| 26 | 25 | use Magento\Framework\Event\Observer; |
| 27 | 26 | use Magento\Framework\Event\ObserverInterface; |
@@ -33,7 +32,6 @@ discard block |
||
| 33 | 32 | use Rossmitchell\Twofactor\Model\Urls\Checker; |
| 34 | 33 | use Rossmitchell\Twofactor\Model\Urls\Fetcher; |
| 35 | 34 | use Rossmitchell\Twofactor\Model\Verification\IsVerified; |
| 36 | -use Rossmitchell\Twofactor\Model\TwoFactorUrls; |
|
| 37 | 35 | |
| 38 | 36 | /** |
| 39 | 37 | * Class Postdispatch |