Skip to content

Commit

Permalink
Add autocomplete for one-time-code
Browse files Browse the repository at this point in the history
  • Loading branch information
phh-lk authored Jan 30, 2024
1 parent 9462b8a commit 3f5cf05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pages/TwoFactorPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected function getFormSchema(): array
<x-filament::link href="#" wire:click="toggleRecoveryCode()">'.($this->usingRecoveryCode ? __('filament-breezy::default.cancel') : __('filament-breezy::default.two_factor.recovery_code_link')).'
</x-filament::link>')))
->required()
->extraInputAttributes(['class' => 'text-center'])
->extraInputAttributes(['class' => 'text-center', 'autocomplete' => $this->usingRecoveryCode ? 'off' : 'one-time-code'])
->autofocus(),
];
}
Expand Down

0 comments on commit 3f5cf05

Please sign in to comment.