🔒 Add #[Locked] attribute to Livewire components to enhance security against client-side state tampering

This commit is contained in:
HolgerHatGarKeineNode
2026-02-03 22:49:42 +01:00
parent 71ce57ddd3
commit 2957e89c79
13 changed files with 149 additions and 2 deletions

View File

@@ -294,9 +294,9 @@ it('does not show stale settled status when invoice check fails', function () {
NostrAuth::login($pleb->pubkey);
// With API failure, the component should show error status regardless of previous state
// Locked properties prevent client-side tampering, so we verify the API failure handling directly
Livewire::test('association.profile')
->set('invoiceStatus', 'Settled')
->set('invoiceStatusLabel', 'Bezahlt')
->call('listenForPayment')
->assertSet('invoiceStatus', null)
->assertSet('invoiceStatusLabel', 'Status unbekannt')