fix tests
This commit is contained in:
@@ -37,8 +37,8 @@ class LoginTest extends TestCase
|
||||
{
|
||||
$wrongKey = substr(hash('sha256', 'wrong-key', binary: true), 0, 32);
|
||||
$iv = random_bytes(16);
|
||||
$encrypted = openssl_encrypt(json_encode(['email' => 'user@example.com']), 'AES-256-CBC', $wrongKey, 0, $iv);
|
||||
$token = base64_encode($iv).'.'.$encrypted;
|
||||
$encrypted = openssl_encrypt(json_encode(['email' => 'user@example.com']), 'AES-256-CBC', $wrongKey, OPENSSL_RAW_DATA, $iv);
|
||||
$token = base64_encode($iv.$encrypted);
|
||||
|
||||
User::create(['email' => 'user@example.com']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user