refactor: Remove commented-out sendEmailVerificationNotification method for cleaner code
This commit is contained in:
parent
3ba104c1a1
commit
b4c6ed7229
@ -7,35 +7,9 @@
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Auth\Pages\EmailVerification\EmailVerificationPrompt;
|
||||
use Filament\Notifications\Notification;
|
||||
use Illuminate\Contracts\Auth\MustVerifyEmail;
|
||||
|
||||
class EmailVerification extends EmailVerificationPrompt
|
||||
{
|
||||
// protected function sendEmailVerificationNotification(MustVerifyEmail $user): void
|
||||
// {
|
||||
// try {
|
||||
// $this->rateLimit(2);
|
||||
// } catch (TooManyRequestsException $exception) {
|
||||
// $this->getRateLimitedNotification($exception)?->send();
|
||||
|
||||
// return;
|
||||
// }
|
||||
|
||||
// if (! $user->hasVerifiedEmail()) {
|
||||
// $user->sendEmailVerificationNotification();
|
||||
|
||||
// CheerfulNotification::success(
|
||||
// 'Mail Meluncur! 📧🚀',
|
||||
// 'Tautan verifikasi baru sudah dikirim ke alamat surelmu. Cek inbox (atau spam) ya! 😉✨'
|
||||
// )->send();
|
||||
// } else {
|
||||
// CheerfulNotification::success(
|
||||
// 'Sudah Aman Kok! ✅',
|
||||
// 'Alamat surel sudah terverifikasi sebelumnya. Langsung lanjut aja! 🏎️💨'
|
||||
// )->send();
|
||||
// }
|
||||
// }
|
||||
|
||||
public function resendNotificationAction(): Action
|
||||
{
|
||||
return Action::make('resendNotification')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user