VPremiss / Livewire-Nonceable

Working around public methods in Livewire...
MIT License
0 stars 0 forks source link

Include deletion in a singular validation method #35

Closed GoodM4ven closed 1 month ago

GoodM4ven commented 1 month ago
protected function validateNonce(string $title, string $nonce): void
{
    if ($this->isNonceSense($title, $nonce)) {
        // ...
    }

    if (!$this->validateNonceUniqueId()) {
       // ...
    }

    $this->deleteNonce($title, $nonce);
}
GoodM4ven commented 1 month ago

37