Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentauger committed Dec 4, 2024
1 parent 665c653 commit fa518fa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions app/Filament/Resources/UserResource/Pages/EditUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 0 additions & 2 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit fa518fa

Please sign in to comment.