From 019958225ce8456b7260a76f9b0525d18c684e23 Mon Sep 17 00:00:00 2001 From: Vincent Auger Date: Wed, 4 Dec 2024 12:04:07 -0400 Subject: [PATCH] logic fix --- app/Filament/Resources/UserResource.php | 2 +- config/mail.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Filament/Resources/UserResource.php b/app/Filament/Resources/UserResource.php index ae083665..6318a369 100644 --- a/app/Filament/Resources/UserResource.php +++ b/app/Filament/Resources/UserResource.php @@ -45,7 +45,7 @@ public static function form(Form $form): Form Forms\Components\Toggle::make('active') ->label('Activate User') ->dehydrated(false) - ->hidden(fn ($record) => $record && !$record->active) + ->hidden(fn ($record) => $record && !$record->email_verified_at) ->onColor('success'), Forms\Components\Actions::make([ Forms\Components\Actions\Action::make('verify_email') diff --git a/config/mail.php b/config/mail.php index 206b3eb3..95a08889 100644 --- a/config/mail.php +++ b/config/mail.php @@ -43,6 +43,8 @@ 'password' => env('MAIL_PASSWORD'), 'timeout' => null, 'local_domain' => env('MAIL_EHLO_DOMAIN'), + // todo: required for 7.2 support; remove when laravel fixes. + 'scheme' => 'smtp', ], 'ses' => [