File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/Magento/FunctionalTestingFramework/DataTransport/Auth/Tfa Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 99use Magento \FunctionalTestingFramework \Exceptions \TestFrameworkException ;
1010use OTPHP \TOTP ;
1111use Magento \FunctionalTestingFramework \DataGenerator \Handlers \CredentialStore ;
12+ use DateTimeImmutable ;
1213
1314/**
1415 * Class OTP
@@ -57,7 +58,14 @@ private static function create($path)
5758 throw new TestFrameworkException ('Unable to get OTP ' . PHP_EOL . $ e ->getMessage ());
5859 }
5960
60- self ::$ totps [$ path ] = TOTP ::create ($ secret );
61+ self ::$ totps [$ path ] = TOTP ::create (
62+ $ secret ,
63+ TOTP ::DEFAULT_PERIOD ,
64+ TOTP ::DEFAULT_DIGEST ,
65+ TOTP ::DEFAULT_DIGITS ,
66+ TOTP ::DEFAULT_EPOCH ,
67+ new DateTimeImmutable ()
68+ );
6169 self ::$ totps [$ path ]->setIssuer ('MFTF ' );
6270 self ::$ totps [$ path ]->setLabel ('MFTF Testing ' );
6371 }
You can’t perform that action at this time.
0 commit comments