diff --git a/app/Filament/Resources/UserResource/Pages/EditUser.php b/app/Filament/Resources/UserResource/Pages/EditUser.php index 9246ecea..09e4f8e3 100644 --- a/app/Filament/Resources/UserResource/Pages/EditUser.php +++ b/app/Filament/Resources/UserResource/Pages/EditUser.php @@ -30,9 +30,6 @@ protected function beforeFill(): void */ protected function beforeSave(): void { - // $this->record->forceFill([ - // 'active' => $this->data['active'], - // ])->save(); $this->record->active = $this->data['active']; $this->record->save(); } diff --git a/app/Models/User.php b/app/Models/User.php index af741ad6..4def7b51 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -185,14 +185,12 @@ public static function generateEmailVerificationToken(): string public function markEmailAsVerified(): bool { if ($this->invitation) { - // $this->invitation->invitation_token = ''; $this->invitation->registered_at = now(); $this->invitation->save(); } return $this->forceFill([ 'email_verified_at' => $this->freshTimestamp(), - // 'email_verification_token' => null, 'active' => true, ])->save(); }