src/Block/Customer/Account/Edit/UseTwoFactor.php 1 location
|
@@ 98-105 (lines=8) @@
|
| 95 |
|
* |
| 96 |
|
* @return bool |
| 97 |
|
*/ |
| 98 |
|
public function isUsingTwoFactor(CustomerInterface $customer) |
| 99 |
|
{ |
| 100 |
|
if ($this->isUsingTwoFactor->hasValue($customer) === false) { |
| 101 |
|
return false; |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
return ($this->isUsingTwoFactor->getValue($customer) === true); |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
/** |
| 108 |
|
* If the customer is using two factor authentication then this will return the selected snippet for use in the |
src/Model/Api/ResponseBuilder/GetQrCode.php 1 location
|
@@ 93-101 (lines=9) @@
|
| 90 |
|
return $response; |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
private function isUsingTwoFactor(CustomerInterface $customer) |
| 94 |
|
{ |
| 95 |
|
$hasValue = $this->isUsingTwoFactor->hasValue($customer); |
| 96 |
|
if ($hasValue === false) { |
| 97 |
|
return false; |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
return $this->isUsingTwoFactor->getValue($customer); |
| 101 |
|
} |
| 102 |
|
} |
| 103 |
|
|