mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-02-04 15:53:17 +00:00
🔒 Add #[Locked] attribute to Livewire components to enhance security against client-side state tampering
This commit is contained in:
@@ -4,26 +4,35 @@ use App\Models\EinundzwanzigPleb;
|
||||
use App\Support\NostrAuth;
|
||||
use App\Traits\NostrFetcherTrait;
|
||||
use Flux\Flux;
|
||||
use Livewire\Attributes\Locked;
|
||||
use Livewire\Component;
|
||||
|
||||
new class extends Component
|
||||
{
|
||||
use NostrFetcherTrait;
|
||||
|
||||
#[Locked]
|
||||
public ?EinundzwanzigPleb $currentPleb = null;
|
||||
|
||||
#[Locked]
|
||||
public ?string $currentPubkey = null;
|
||||
|
||||
#[Locked]
|
||||
public bool $currentYearIsPaid = false;
|
||||
|
||||
#[Locked]
|
||||
public ?string $nip05Handle = '';
|
||||
|
||||
#[Locked]
|
||||
public bool $nip05Verified = false;
|
||||
|
||||
#[Locked]
|
||||
public ?string $nip05VerifiedHandle = null;
|
||||
|
||||
#[Locked]
|
||||
public bool $nip05HandleMismatch = false;
|
||||
|
||||
#[Locked]
|
||||
public array $nip05VerifiedHandles = [];
|
||||
|
||||
protected $listeners = [
|
||||
|
||||
Reference in New Issue
Block a user