Skip to content

Commit

Permalink
[Bug fix] OTP code should be required when challenging (#23)
Browse files Browse the repository at this point in the history
* Make field required

* Fix styling

* wip

---------

Co-authored-by: Baspa <Baspa@users.noreply.github.com>
  • Loading branch information
Baspa and Baspa authored Aug 28, 2024
1 parent c2bb853 commit fb69b4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Http/Livewire/Auth/LoginTwoFactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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')),

];
}
}

0 comments on commit fb69b4a

Please sign in to comment.