Skip to content

Commit e4aea96

Browse files
Merge pull request magento#31 from magento-cia/MC-32830
MC-32830: Do not store admin and customer tokens in DB
2 parents 7b4d36e + 036fea1 commit e4aea96

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

TwoFactorAuth/Test/Integration/Model/Provider/Engine/Authy/AuthenticateTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function testAuthenticateValidRequest()
156156
'abc'
157157
);
158158

159-
self::assertMatchesRegularExpression('/^[a-z0-9]{32}$/', $result);
159+
self::assertNotEmpty($result);
160160
}
161161

162162
/**
@@ -290,7 +290,7 @@ public function testCreateTokenWithOneTouch()
290290
Bootstrap::ADMIN_PASSWORD
291291
);
292292

293-
self::assertMatchesRegularExpression('/^[a-z0-9]{32}$/', $result);
293+
self::assertNotEmpty($result);
294294
}
295295

296296
/**

TwoFactorAuth/Test/Integration/Model/Provider/Engine/DuoSecurity/AuthenticateTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public function testVerifyValidRequest()
257257
$signature
258258
);
259259

260-
self::assertMatchesRegularExpression('/^[a-z0-9]{32}$/', $token);
260+
self::assertNotEmpty($token);
261261
}
262262

263263
/**

TwoFactorAuth/Test/Integration/Model/Provider/Engine/U2fKey/AuthenticateTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function testVerifyValidRequest()
238238
Bootstrap::ADMIN_PASSWORD,
239239
json_encode($verifyData)
240240
);
241-
self::assertMatchesRegularExpression('/^[a-z0-9]{32}$/', $token);
241+
self::assertNotEmpty($token);
242242
}
243243

244244
/**

0 commit comments

Comments
 (0)