From fa1498d747d50c24823c57c6ddafc4f2de4eab56 Mon Sep 17 00:00:00 2001 From: Julius Kiekbusch Date: Wed, 26 Nov 2025 15:58:03 +0100 Subject: [PATCH 1/2] Use FluxUI OTP --- .../views/components/input-otp.blade.php | 138 ------------------ .../auth/two-factor-challenge.blade.php | 13 +- .../livewire/settings/two-factor.blade.php | 12 +- 3 files changed, 2 insertions(+), 161 deletions(-) delete mode 100644 resources/views/components/input-otp.blade.php diff --git a/resources/views/components/input-otp.blade.php b/resources/views/components/input-otp.blade.php deleted file mode 100644 index de1b0d46..00000000 --- a/resources/views/components/input-otp.blade.php +++ /dev/null @@ -1,138 +0,0 @@ -@props([ - 'digits' => 6, - 'name' => 'code', -]) - -
-
- @for ($x = 1; $x <= $digits; $x++) - $x === 1, - 'rounded-r-md' => $x === $digits, - '-ml-px' => $x > 1, - ]) - /> - @endfor -
- - except(['digits']) }} - type="hidden" - x-ref="code" - name="{{ $name }}" - minlength="{{ $digits }}" - maxlength="{{ $digits }}" - /> -
diff --git a/resources/views/livewire/auth/two-factor-challenge.blade.php b/resources/views/livewire/auth/two-factor-challenge.blade.php index dcbb6294..21ca642f 100644 --- a/resources/views/livewire/auth/two-factor-challenge.blade.php +++ b/resources/views/livewire/auth/two-factor-challenge.blade.php @@ -43,19 +43,8 @@ class="relative w-full h-auto"
- +
- - @error('code') - - {{ $message }} - - @enderror
diff --git a/resources/views/livewire/settings/two-factor.blade.php b/resources/views/livewire/settings/two-factor.blade.php index 529e1a58..e0ae6124 100644 --- a/resources/views/livewire/settings/two-factor.blade.php +++ b/resources/views/livewire/settings/two-factor.blade.php @@ -266,17 +266,7 @@ class="max-w-md md:min-w-md" @if ($showVerificationStep)
- - @error('code') - - {{ $message }} - - @enderror +
From 0cc11b3de684b22e50ec3eb80ba352672be004bc Mon Sep 17 00:00:00 2001 From: Julius Kiekbusch Date: Wed, 26 Nov 2025 16:00:09 +0100 Subject: [PATCH 2/2] Require FluxUI 2.9.0 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1fba8a51..3eb81841 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "laravel/fortify": "^1.30", "laravel/framework": "^12.0", "laravel/tinker": "^2.10.1", - "livewire/flux": "^2.1.1", + "livewire/flux": "^2.9.0", "livewire/volt": "^1.7.0" }, "require-dev": {