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,19 +4,25 @@ use App\Livewire\Traits\WithNostrAuth;
|
||||
use App\Models\ProjectProposal;
|
||||
use App\Models\Vote;
|
||||
use App\Support\NostrAuth;
|
||||
use Livewire\Attributes\Locked;
|
||||
use Livewire\Component;
|
||||
|
||||
new class extends Component {
|
||||
use WithNostrAuth;
|
||||
|
||||
#[Locked]
|
||||
public $projectProposal;
|
||||
|
||||
#[Locked]
|
||||
public bool $isAllowed = false;
|
||||
|
||||
#[Locked]
|
||||
public ?string $currentPubkey = null;
|
||||
|
||||
#[Locked]
|
||||
public ?object $currentPleb = null;
|
||||
|
||||
#[Locked]
|
||||
public bool $ownVoteExists = false;
|
||||
|
||||
public function mount($projectProposal): void
|
||||
|
||||
Reference in New Issue
Block a user