CluPilotCloud/app/Livewire/ConfirmDeleteOwnAccount.php

29 lines
797 B
PHP

<?php
namespace App\Livewire;
use LivewireUI\Modal\ModalComponent;
/**
* "Diese Registrierung wirklich verwerfen?"
*
* R23: a consequence is confirmed in this product's own design, never in a
* window the browser draws. The modal mutates nothing — it dispatches the event
* the page component listens for, so the checks that decide whether the account
* may be deleted stay in the one place they already are (Auth\VerifyEmail),
* rather than being duplicated here where they could drift.
*/
class ConfirmDeleteOwnAccount extends ModalComponent
{
public function confirm(): void
{
$this->dispatch('own-account-delete-confirmed');
$this->closeModal();
}
public function render()
{
return view('livewire.confirm-delete-own-account');
}
}