archetecture security fix

This commit is contained in:
root
2026-06-11 03:22:12 -04:00
parent 6def9993da
commit 9483750161
3126 changed files with 177194 additions and 37211 deletions
+11
View File
@@ -21,4 +21,15 @@ class UserTest extends TestCase
{
$this->assertInstanceOf(User::class, new User());
}
public function test_password_mutator_preserves_pbkdf2_hashes(): void
{
$hash = pbkdf2_hash('secret-password');
$model = new User();
$model->password = $hash;
$this->assertSame($hash, $model->getAttributes()['password']);
$this->assertTrue(verify_stored_password('secret-password', $model->getAttributes()['password']));
}
}