From fb69b4a134ac22217863761c75b3788a9ec8779c Mon Sep 17 00:00:00 2001 From: Bas van Dinther Date: Wed, 28 Aug 2024 11:36:59 +0200 Subject: [PATCH] [Bug fix] OTP code should be required when challenging (#23) * Make field required * Fix styling * wip --------- Co-authored-by: Baspa --- src/Http/Livewire/Auth/LoginTwoFactor.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Http/Livewire/Auth/LoginTwoFactor.php b/src/Http/Livewire/Auth/LoginTwoFactor.php index 8d2f9c5..29f8a2c 100644 --- a/src/Http/Livewire/Auth/LoginTwoFactor.php +++ b/src/Http/Livewire/Auth/LoginTwoFactor.php @@ -65,6 +65,7 @@ public function resend(): Action { return Action::make('resend') ->label(__('Resend')) + ->color('primary') ->extraAttributes(['class' => 'w-full text-xs']) ->link() ->disabled(fn () => ! $this->canResend()) @@ -124,12 +125,12 @@ protected function getFormSchema(): array { return [ TextInput::make('code') + ->required() ->extraInputAttributes(['name' => 'code']) ->label(__('Code')), TextInput::make('recovery_code') ->extraInputAttributes(['name' => 'recovery_code']) ->label(__('Recovery code')), - ]; } }