Skip to content

Commit

Permalink
Merge branch 'main' of github.com:vormkracht10/filament-two-factor-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Aug 23, 2024
2 parents f1227fb + f785fee commit bccc8b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Enums/TwoFactorType.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ enum TwoFactorType: string implements HasLabel

public static function values(): array
{
return array_map(fn($type) => $type->getLabel(), self::cases());
return array_map(fn ($type) => $type->getLabel(), self::cases());
}

public function getLabel(): ?string
Expand All @@ -26,4 +26,4 @@ public function getLabel(): ?string
self::phone => __('SMS'),
};
}
}
}
4 changes: 2 additions & 2 deletions src/Pages/TwoFactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function getConfirmationForm(): array
return [
TextInput::make('current_password')
->label(__('Password'))
->dehydrateStateUsing(fn($state) => filled($state))
->dehydrateStateUsing(fn ($state) => filled($state))
->required()
->password()
->inlineLabel()
Expand Down Expand Up @@ -229,4 +229,4 @@ public function regenerateRecoveryCodes(GenerateNewRecoveryCodes $generate): voi

$this->showingRecoveryCodes = true;
}
}
}

0 comments on commit bccc8b5

Please sign in to comment.