1
0
Fork 0
mirror of synced 2024-07-01 20:50:49 +12:00

TODO added

This commit is contained in:
Matej Bačo 2022-05-01 14:14:16 +00:00
parent 5b680d28d0
commit 3f3858f0b3

View file

@ -124,8 +124,8 @@ class AuthTest extends TestCase
$hash = 'EPKgfALpS9Tvgr/y1ki7ubY4AEGJeWL3teakrnmOacN4XGiyD00lkzEHgqCQ71wGxoi/zb7Y9a4orOtvMV3/Jw==';
$options = [ 'salt' => '56dFqW+kswqktw==', 'cost_cpu' => 8, 'cost_memory' => 14, 'cost_parallel' => 1, 'length' => 64 ];
$generatedHash = Auth::passwordHash($plain, 'scrypt', $options);
\var_dump($generatedHash);
$this->assertEquals(true, Auth::passwordVerify($plain, $generatedHash, 'scrypt', $options));
// TODO: This test is failing.
$this->assertEquals(true, Auth::passwordVerify($plain, $hash, 'scrypt', $options));
}