From 22c53b84b7fff91b01a318d71a10dfc251e92849 Mon Sep 17 00:00:00 2001 From: Perry van der Meer <11609290+PerryvanderMeer@users.noreply.github.com> Date: Mon, 4 Mar 2024 15:35:21 +0100 Subject: [PATCH] fix-form-validation (#364) --- stubs/livewire-common/app/Livewire/Forms/LoginForm.php | 4 ++-- .../resources/views/livewire/pages/auth/login.blade.php | 4 ++-- .../resources/views/livewire/pages/auth/login.blade.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stubs/livewire-common/app/Livewire/Forms/LoginForm.php b/stubs/livewire-common/app/Livewire/Forms/LoginForm.php index 2e7737b1e..3c20c3749 100644 --- a/stubs/livewire-common/app/Livewire/Forms/LoginForm.php +++ b/stubs/livewire-common/app/Livewire/Forms/LoginForm.php @@ -34,7 +34,7 @@ public function authenticate(): void RateLimiter::hit($this->throttleKey()); throw ValidationException::withMessages([ - 'email' => trans('auth.failed'), + 'form.email' => trans('auth.failed'), ]); } @@ -55,7 +55,7 @@ protected function ensureIsNotRateLimited(): void $seconds = RateLimiter::availableIn($this->throttleKey()); throw ValidationException::withMessages([ - 'email' => trans('auth.throttle', [ + 'form.email' => trans('auth.throttle', [ 'seconds' => $seconds, 'minutes' => ceil($seconds / 60), ]), diff --git a/stubs/livewire-functional/resources/views/livewire/pages/auth/login.blade.php b/stubs/livewire-functional/resources/views/livewire/pages/auth/login.blade.php index bba439dc7..56d25a050 100644 --- a/stubs/livewire-functional/resources/views/livewire/pages/auth/login.blade.php +++ b/stubs/livewire-functional/resources/views/livewire/pages/auth/login.blade.php @@ -32,7 +32,7 @@