Skip to content

Commit 7b4914b

Browse files
committed
Use input
1 parent 2094caa commit 7b4914b

File tree

1 file changed

+1
-1
lines changed
  • src/Magento/FunctionalTestingFramework/DataTransport/Auth/Tfa

1 file changed

+1
-1
lines changed

src/Magento/FunctionalTestingFramework/DataTransport/Auth/Tfa/OTP.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private static function create($path)
5151
if (!isset(self::$totps[$path])) {
5252
try {
5353
// Get shared secret from Credential storage
54-
$encryptedSecret = CredentialStore::getInstance()->getSecret(self::OTP_SHARED_SECRET_PATH);
54+
$encryptedSecret = CredentialStore::getInstance()->getSecret($path);
5555
$secret = CredentialStore::getInstance()->decryptSecretValue($encryptedSecret);
5656
} catch (TestFrameworkException $e) {
5757
throw new TestFrameworkException('Unable to get OTP' . PHP_EOL . $e->getMessage());

0 commit comments

Comments
 (0)